]> andersk Git - sql.git/blob - web/tools/list_dbs.php
git-svn-id: svn://presbrey.mit.edu/sql@115 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql.git] / web / tools / list_dbs.php
1 <?php
2
3 require_once('mysql.inc.php');
4
5 $res = @mysql_connect($i_h,$i_u,$i_p);
6 !is_resource($res) && die($_MYSQL_TOOLS_ERROR['LOGIN_ERROR']);
7 $r = mysql_list_dbs($res);
8 $dbs = array();
9 while($row = mysql_fetch_row($r)) {
10         $dbs[] = array_shift($row);
11 }
12 echo implode("\n",$dbs);
13
14 ?>
This page took 0.292787 seconds and 5 git commands to generate.