Admin Controls |
cid |
sub |
num |
uid |
';
// Loop for each row and use the cid to create custom URL links for editing and deleting courses
while($row = $rows->fetch_assoc()) {
$tds .= '
Edit
X
|
'.$row['cid'].' |
'.$row['sub'].' |
'.$row['num'].' |
'.$row['uid'].' |
';
}
// Slice the header row and table data into a Bootstrap table
$table = '
';
// Return the table
return $table;
}
return 'No rows';
}
return 'Must be logged in';
}
$table_name = 'userid_courses'; // Be sure to change this to your userid, e.g., f01last_courses
$page_name = 'Manage '.$table_name;
$content = ''.$page_name.'
';
$content .= show_admin_table($table_name);
make_basic_page($page_name, $content);
?>