Forum Moderators: coopster
I'm trying to build a script that will find all the table names in my database. This is my current code which of course doesn't work ;)
<?php
$tables_query = mysql_query("SHOW TABLES");
while ($tables = mysql_fetch_assoc($tables_query)) {
print $tables;
}
?>
So I have the query being built and because I am just saying for it to print the variable $tables it just says array. What I am wondering is what do I put for it to print the table names so $tables['?']. Does anyone know?
Thanks in advance for your help.
Wes
[us2.php.net...]
Thanks for your posts
Wes
MySQL Database Size [webmasterworld.com]