SQL QUERY
if ($_SERVER == 'POST') {
if ($_POST == 'm2') {
$sql="SELECT Products, TABLE 1";
$rs=odbc_exec($conn,$sql);
}
elseif ($_POST == 'm3') {
$sql="SELECT Products, Table2";
$rs=odbc_exec($conn,$sql);
FORM 1
echo '
<form name="input" action="kkl.php" method="GET"> <div align= "left">
<b>City:</b>
<select NAME="list1">
<OPTION VALUE="m1"></option>
<OPTION VALUE="m2">London</option>
<OPTION VALUE="m3">Paris</option>
<OPTION VALUE="m4">Tokoyo</option>
</select>
<br/><br/>
<b>Monthly Class:</b>
<select NAME="list2">
<OPTION VALUE="m1"></option>
<OPTION VALUE="m2">First Class</option>
<OPTION VALUE="m3">Economy</option>
</select>
Please how can I write a query that if a customer selects m2 FROM list1 AND m3 FROM list2 it should display Table 1 and if the customer select m3 FROM list1 and m2 FROM list2 it should display Table2. I look forward to your replies and thanks very much in advance