";
$results = mysql_list_tables($mysqdb['name']) or die("Invalid request: " . mysql_error());
while ($row = mysql_fetch_row($results)) {
$cats[] = $row[0];
}
for ($i = 0; $i < count($cats); $i++) {
print " • " . $cats[$i] . "
\n";
}
mysql_free_result($results);
} else {
print "Use the form below to add up to five links at a time to your category " . $HTTP_GET_VARS[which] . ". If you do not want to add that many links, simply leave the extra spaces blank.
";
$inc = $mysqvars['path'] . "/lib/admin_addlinks_form.php";
include($inc);
}
?>