mysql_tablename()
string mysql_tablename(results,index)
This function returns the table name for a particular table
in the results set given by
mysql_list_tables(). You can specify an index
to retrieve a particular element of the results set. This function is
deprecated, though. Use the mysql_query()
function with the SHOW TABLES statement instead.
Here is an example:
...
$tables = mysql_list_tables('workrequests');
$tbs = mysql_num_rows($tables);
for($index = 0; $index < $tbs; $index++) {
print mysql_tablename($tables, $index) . "\n";
}
...