$r = mysql_query("SELECT DATABASE()") or die(mysql_error());
echo mysql_result($r,0);
---------------------------------
来源:http://www.phpweblog.net/haix/archive/2009/08/18/6852.aspx
$r = mysql_query("SELECT DATABASE()") or die(mysql_error());
echo mysql_result($r,0);
---------------------------------
来源:http://www.phpweblog.net/haix/archive/2009/08/18/6852.aspx