$db= mysql_connect("localhost","root",""); if(!$db) { echo "error"; exit; } $table = mysql_query("show tables from sctv_data2 LIKE '%nhap_%'"); echo "<select name = 'venue' >"; while (($row = mysql_fetch_row($table)) != null) { echo "<option value = '{$row['0']}'"; if ($selected_venue_id == $row['0']) echo "selected = 'selected'"; echo ">{$row['0']}</option>"; } echo "</select>"; if(isset($_POST['button'])) { $a = $_POST['venue']; echo $a; // it's not print $a
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)