I'm having this error on the area below. When I comment it out it stops giving me the error and I have tried commenting it out piece by piece to see if there is something wrong but I get nothing. I'm sure I am missing something really easy.
while (row= mysql_fetch_row($result)) {
print '<form';
print '<select name = "students">;
foreach ($row as $field) {
print '<option value="$field>$field</option>;
}
print '</select>';
print '</form>;
}