<? $dbconn2=mysql_connect("localhost","root","1234");
$dbname="onlinebee_net";
$result = mysql_list_tables($dbname);
while ($row = mysql_fetch_row($result)) {
echo"$row[0] <br>";
$sql2="SHOW COLUMNS FROM ".$row[0];
$q2=mysql_query($sql2,$dbconn2);
while ($dbrow = mysql_fetch_assoc($q2)) { foreach($dbrow as $key=>$value) { echo"a: $key :: b: $value <br> ";
}
}
}
?>
|