[thelist] Remedial PHP - MySQL

Luther, Ron ron.luther at hp.com
Wed Feb 16 08:53:55 CST 2005

Hi Gang,

I have several mysql databases. I'm trying, without a lot of success 
this morning (must be tired), to use PHP to get a list of the tables 
in one of those databases:

     if (!($listOfTables = mysql_list_tables($link, 1))) {
     	echo("Dang! No Tables Found!");

I think my syntax is off. I'm not sure how to point this command at 
one database ... or does it return all of the tables from all of the 
databases and I have to segregate them out of the results set?



Testing a new setup, but Yes: 
-- There *is* one table in the database I'm interested in. 
-- It contains exactly 4 records at the moment.

More information about the thelist mailing list