So basicly this is my code:
echo "<SELECT>";
foreach($arr_res as $op) {
$q3 = mysql_query(mysql_fetch_array("SELECT SL_TIME FROM SLOTS WHERE SL_ID='$op'"));
echo "<OPTION value=".$op.">".$q3."</OPTION>";
}
echo "</SELECT>";
$arr_res
is the resulting array of an array_diff
. It has only numerical values which are the SL_ID from my timeslots.. I want to show SL_TIME but the result I get is the $q3
producing empty result.. Why isn't this working?