]> andersk Git - sql.git/blame - 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
CommitLineData
65303177
JP
1<?php
2
3require_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();
9while($row = mysql_fetch_row($r)) {
10 $dbs[] = array_shift($row);
11}
12echo implode("\n",$dbs);
13
14?>
This page took 0.326714 seconds and 5 git commands to generate.