Name

mysql_tablename( )

Synopsis

mysql_tablename(results, index)

This returns the table name for a particular table in the results set given by mysql_list_tables( ). An index may be specified to retrieve a particular element of the results set.

...
$tables = mysql_list_tables('workrequests');
$tbs = mysql_num_rows($tables);
for($index = 0; $index < $tbs; $index++) {
    print mysql_tablename($tables, $index) . "\n";
}
...

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.