HI rebelo
Ive got a table which holds information about different courses a user can take...... what i need is the data in the field to be outputed in into a drop down box.....
this is my query so far....
$query = "SELECT subject_code FROM subject info WHERE subject_code=!null;
$result = mysql_query($query);
if (mysql_num_rows($result)) {
// loop through resulting rows, creating options
while ($row = mysql_fetch_row($result)) {
echo "< input type ="ist" list value=\"".$row[0]."\">".$row[1]."</option>";
}
}
?>
this is not working
any tips?