View Full Version : Creating a <select> with table names

03-30-2007, 06:30 AM
Hi, I was wondering if there is anyway to get all the tables in a mySQL database and insert it into a Drop down box with php, or any other language.

03-30-2007, 07:47 AM
echo "<select>";
$table = 0;
while ($table < mysql_num_rows($tables)) {
$tablename=mysql_tablename($tables, $table);
echo "<option><value=\"$tablename\">$tablename</option>\n\r";
echo "</select>";

03-30-2007, 06:04 PM
Thank you very much BonRouge

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum