That seems to work, except that if the value was selected I can't unselect it and save it as unselected - it keeps showing up as selected regardless.
Here's the join sql:
$sql5 = "SELECT * FROM $table_name8 LEFT JOIN $table_name2 using (section_id)";
$result5 = @($sql5,$connection) or die(mysql_error());
And here's the while statement i made to populate the select box:
while ($row = mysql_fetch_array($result5)) {
$section_id = $row['section_id'];
$date_id = $row['date_id'];
$section = $row['section'];
if ($section_id == NULL) {
$option_block5 .= "<option value=\"$section_id\" selected=\"selected\">$section</option>";
} else {
$option_block5 .= "<option value=\"$section_id\">$section</option>";
}
}
What do you think?
Thanks,
S./