I'm getting blurry eyed, or maybe just old...what am I doing wrong on this simple drop down? I can't get it to select.
$sql_d="SELECT *
FROM div_info
ORDER BY div_name";
$res_d = mysql_query($sql_d, $link )or die(mysql_error($mysql));
echo '<select name="whatDiv_ud[' . $row['gameID'] . ']>"';
while($nt=mysql_fetch_array($res_d)){
echo "<option value= $nt[div_name]";
if ($nt[div_name] == $row[whatDiv])
{
echo "SELECTED";
}
echo ">$nt[div_value]</option>";
}
echo "</select>";
Thanks