Home >Backend Development >PHP Tutorial >php list all databases of mysql

php list all databases of mysql

WBOY
WBOYOriginal
2016-07-25 08:43:34947browse
  1. $rs= @mysql_list_dbs( $conn ) or die( "Sorry - could not list databases" );for( $row=0; $row < mysql_num_rows($rs); $row++ ){
  2. $db_list .= mysql_tablename( $rs, $row ) . "
    "; } ?>
  3. Listing databases
复制代码

php, mysql


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn