Home > Backend Development > PHP Tutorial > php list all tables in database

php list all tables in database

WBOY
Release: 2016-07-25 08:43:32
Original
1044 people have browsed it
  1. {
  2. $this_db = mysql_tablename( $rs1, $row );
  3. $list .= "".$this_db."
    ";
  4. if( $this_db != "mysql" )
  5. {
  6. $rs2 = mysql_list_tables( $this_db );
  7. for( $num=0; $num < mysql_num_rows( $rs2) ; $num++ )
  8. {
  9. $list .= " - " . mysql_tablename( $rs2, $num ) . "
    ";
  10. }
  11. }
  12. }
  13. ?>
  14. Listing Tables
复制代码

数据库中, php


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template