Drop Down list from database in PHP/ NOT WORKING ........HELP

Discussion in 'PHP' started by prajita, Oct 27, 2007.

  1. #1
    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
     
    prajita, Oct 27, 2007 IP