Mysql('mydb", "SHOW TABLES FROM mydbname") ???

From: Date: Sat, 12 Jan 2002 19:48:16 +0000
Subject: Mysql('mydb", "SHOW TABLES FROM mydbname") ???
Groups: php.general 
Request: Send a blank email to php-general+get-80294@lists.php.net to get a copy of this message
I’m trying to display the tables in my database using $tables = mysql(‘mydb”, “SHOW TABLES FROM mydbname”) but this statement doesn’t seem to behave like selecting records from a table. Does this query return an array of table names? If I use something like $records = mysql(‘mydb”, “SELECT * FROM sometable) everything works fine. There must be something I’m missing about the SHOW query. Thanks Chris Williams

« previous php.general (#80294) next »