Ive created a form
<form name="form1" method="post" action="result-sym.php?">
which required user to enter 1 value and 2 option from pulldown menu.
My php code is as below
if(!$title){$q1="title='$read[1]'";}
if($month=Choose){echo "please select month";}
else{ $q2="month='$read[5]'";}
if ($year=Choose){echo "please select year";}
else{$q3="year='$read[6]'";}
$q = "SELECT idsym,title,author, department,day,month,year,synopsis
FROM sympo WHERE";
if (!$title)
$q.=" $q1";
else if (($month!= 'Choose')AND (isset($title)))
$q.="AND $q2";
else if (($year != 'Choose')AND ((isset($title) || isset ($month)))
$q.="AND $q3";
echo $q;
$result = mysql_result($q,$dbsambung);
while($read=mysql_fetch_row($result)){
?>
it doesnt work , anybody can help me with this? thnx