List all database : Database MetaData : MySQL Database PHP Source Code


PHP Source Code » MySQL Database » Database MetaData »

 

List all database




<?php

   mysql_connect("mysql153.secureserver.net","navioo","password");

   $dbs = mysql_list_dbs();
   echo "Databases: <br />";

   while (list($db= mysql_fetch_row($dbs)) {
      echo "$db <br />";
   }

?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo MySQL Database
» Database MetaData