Coin Community - Books - Mortgage Loans - Busby SEO Test - Mortgage insurance

PDA

View Full Version : Drop Down list from database in PHP/ NOT WORKING ........HELP


prajita
Oct 27th 2007, 4:36 pm
Please Help..with the code



echo "<select name=\"studentid\">";
while($row = mysql_fetch_row($results_id));
{
echo "<option value=\"".$row['stu_id']."\">".$row['stu_id']."</option>";
}
echo "</select>";


print '</select>';

In above code i am trying to create a drop down list from a data in a table in a database

The name of the field in table is stu_id


Please help

I really need your help