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

  • 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

Comments

No comments. Be the first one.

Leave a comment

Full Name*
Comments*
Security Code*

Our Partners

Getty Icons  Salman Creations
Free High Quality Images  Learn Free Languages 
Opal Hosting  R-Tech Solutions
  • Submit a Script

    Click here to submit your script.