what am i missing?
| From: | kelly | Date: | Mon, 10 Apr 2000 20:50:09 +0000 |
| Subject: | what am i missing? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17782@lists.php.net to get a copy of this message | ||
Hello again all ..
i am trying to make a mysql_list_tables tsatement and return the results
but keep getting the following errors
Warning: Unable to save MySQL query result in
/usr/local/httpd/htdocs/phpadmin/class2.php3 on line
52
Warning: 0 is not a MySQL result index in
/usr/local/httpd/htdocs/phpadmin/class2.php3 on line 53
and this is the piece of code causing the errors
$tables = mysql_list_tables($database);
while($myrow = mysql_fetch_row($tables)) {
printf("%s\n",$myrow[0]);
}
$database is selected by the user i checked to see that it was being
passed and it is . I used this same syntax to list the databases with
mysql_list_dbs and it worked so what am i doing wrong?
many thanks in advance
K