Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

List all database in php

Sun Oct 26, 2008 7:11 pm

Code:

<?php

   mysql_connect
("server","username","password");

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

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

?>




Post a reply
  Related Posts  to : List all database in php
 List Database, Table, and Field in php     -  
 reverse list     -  
 List interface     -  
 list swap in C++     -  
 List C++ implementation     -  
 Implementation of List     -  
 list and explode     -  
 iterator on list     -  
 Sort a list     -  
 display list     -  

Topic Tags

PHP Database