Hi, the code below allows me to print out the list of tables in my database into a SELECT list and print each one as an option. THe problem is that i cannot send the selected variable through to the script which prints out the variables, can anyone help? Thanks
Code:
include_once("standard.php");
$dbh = mysql_connect($host, $user, $pass);
mysql_select_db($name);
$tables = mysql_list_tables($name);
Print "<select name=\"select_list\">";
while (list($bla)=mysql_fetch_array($tables)) {
Print "\n<option value=\"$bla\" name=\"$bla\">$bla</option>";
}
Print "</select>";
Thanks
Chris Davis