note 84662 modified in function.mysql-list-tables by danbrown
| From: | danbrown@php.net | Date: | Thu, 24 Jul 2008 13:27:49 +0000 |
| Subject: | note 84662 modified in function.mysql-list-tables by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142649@lists.php.net to get a copy of this message | ||
Just a simple note:
mysql-list-tables change the context of your active database.
for example:
<?php
//set databse context to db1
mysql_select_db("db1");
//list database tables from db2
mysql-list-tables("db2");
?>
-> Now your active database is db2 and not db1. You have to consider using your sql statements.
--was--
Just a simple note:
mysql-list-tables change the context of your active database.
for example:
//set databse context to db1
mysql_select_db("db1");
//list database tables from db2
mysql-list-tables("db2");
-> Now your active database is db2 and not db1. You have to consider using your sql statements.
http://php.net/manual/en/function.mysql-list-tables.php