Display all mysql tables from a database with PHP
Free Scripts :: PHP :: PHP and Mysql :: Display all mysql tables from a database with PHP
Author: Salman Javaid
Website: http://www.salman.be
Website: http://www.salman.be
- How to show all mysql tables with php.
- Display all mysql database tables with php.
- List all mysql tables with php.
This script lists all available tables in selected mysql database.
Script
$sql = mysql_query("SHOW TABLES");
while ($row = mysql_fetch_array($sql)){
echo $row[0] . ', ';
}
Output
admin, categories, products, shipping, users




