I have multiple drop down menus, and each of them needs an "all" option. what shall I do to create it and how mysql will look like to get the data when selecting this option?
So far I have something like this:
echo '<b>Host </b>';
echo '<select name="hostfield" >';
echo '<option value=*> ALL </option>';
...
echo '</select>';
echo '<b> Program </b>';
echo '<select name="programfield">';
echo '<option value=*> ALL </option>';
...
echo '</select>';
...
...
$hostId=$_POST['hostfield'];
$programId=$_POST['programfield'];
$q="SELECT date,time,host,msg FROM table WHERE host='$hostId' AND program='$programId' AND ... ;";
....
But I am geting no data.
Thanks.