Hello, i'm having some trouble listing the tables on my server. below is the code i use. The problem is it only seems to print the first table, and none of the others. any help would be appreciated.
$list = mysql_list_tables($database);
$result = mysql_fetch_array($list);
$c = 0;
while($result[$c]) {
echo "$result[$c]";
$c++;
}
thanks in advance.
$list = mysql_list_tables($database);
$result = mysql_fetch_array($list);
$c = 0;
while($result[$c]) {
echo "$result[$c]";
$c++;
}
thanks in advance.