";
$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++) {
$funkychars = rawurlencode($cats[$i]);
print " • " . $cats[$i] . "
\n";
}
mysql_free_result($results);
} elseif (($HTTP_GET_VARS['stage'] == 2) && ($HTTP_GET_VARS['edit_category'] != "")) {
print "You are editing the properties of your category " . $HTTP_GET_VARS['edit_category'] . ". You may change it's name or description on this page.
\n";
print "Please check your changes before clicking Save, as there is no option to undo.
";
// getting the category description
$query = "SHOW TABLE STATUS LIKE '$HTTP_GET_VARS[edit_category]'";
$results = mysql_query($query) or die("Invalid query: " . mysql_error());
while ($row = mysql_fetch_array($results)) {
$description = $row['Comment'];
}
mysql_free_result($results);
$inc = $mysqvars['path'] . "/lib/admin_editcat_form.php";
include($inc);
}
?>