Forum Moderators: coopster
you can use "show tables" to see the tables in a database. however if you want to display tables in a database and their data too then you will need a kinda looping code in php
e.g
$tRes = mysql_query("SHOW TABLES");
$i=0;
while($tRow=mysql_fetch_array($tRes)) {
$dRes = mysql_query("SELECT * FROM ". $tRow[$i]);
while($dRow=mysql_fetch_array($dRes)) {
//print all data
}
$i++;
}
this code is not tested and i just wrote it so use it at your own risk :)
however it WILL give you the concept at least.
exec("execute mysql command from shell",$results);
print_r($results);