mysql_list_tables()

It lists tables in a MySQL database . Its deprecated

Example

<?php
$conn=mysql_connect(“localhost”, “root”, “phpcode”) or die( mysql_error());
$table = mysql_list_tables (“database_name”);
for ($i=0; $i < mysql_num_rows($table); ++$i) {
echo mysql_result ($table, $i, 0), ‘<br />’;
}
?>

Output

users