Posted by Steve on 09/19/05 03:14
> <select name="select_year" id="select_year">
>
> </select>
> it looks like it doesn't get anything...
> I tried a simple loop on the same page and it outputs the data fine...
Wait... print is not a function! Remove the parentheses, and try this:
while ($line = mysql_fetch_array($result))
{
print "<OPTION
value=".$line['year'].">".$line['year']."</OPTION>";
}
---
Steve
[Back to original message]
|