while ($row = mysql_fetch_row($result))
{
printf(\"<option value=\\"%s\\">%s\", $row[0], $row[1]);
}
someone may likely give a better explanation, but for me, I don't like the C/C++ way of printing to screen. I prefer echo, but am sure you have your prefs.
anyway, while printf and %s probably require them, there seem to be an awful lot of backslashes - why on the $query?
this works well for me
while ($row = mysql_fetch_row($result))
{
echo("<option value=\"$value\">$row[0], $row[1]">;
}