php 显示mysql服务器所有数据库 SHOW DATABASES
$mydbname=$_GET['mydbname'];
$selectdbname=$phome_db_dbname;
if($mydbname)
{
$selectdbname=$mydbname;
}
$db='';
if($canlistdb)
{
$db.="";
}
else
{
$sql=$empire->query("SHOW DATABASES");
while($r=$empire->fetch($sql))
{
if($r[0]==$selectdbname)
{$select=" selected";}
else
{$select="";}
$db.="
[0]."";
}
}