时间:2021-07-01 10:21:17 帮助过:28人阅读
本文实例讲述了php mysql_list_dbs()函数用法。分享给大家供大家参考,具体如下:
mysql_list_dbs()函数
定义:列出MySQL服务器中所有的数据库
- $conn=@mysql_connect("localhost","root","admin")or die(mysql_error());
- $db=mysql_list_dbs($conn);
- while($result=mysql_fetch_object($db)){
- echo $result->Database."<br>";
- }
以上就是php mysql_list_dbs()函数用法的示例代码详解的详细内容,更多请关注Gxl网其它相关文章!