Try: <OPTION VALUE=\"$row['class_code']\">" .$row["class_code"]. "</option>"; > while ($row = mysql_fetch_array($sql)) > { > print "<OPTION VALUE=\"$class_code\" >" .$row["class_code"]. "</option>"; > } > $result = $db->query($sql); > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php