hi i am populating a list menu with mysql , i would like to find a way to
populate a form with more than one of the same list menus in a for loop

 <select name="type[]">
       while ($sample = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
    $sample_type[$sample['typeID']] = $sample["description"];
    echo "\n<option value=\"$typeID\" $selected>$description</option>";

i have this within a for loop but the list only shows up once and the second
one is empty because the select from the database is finished ,

is there a way to put the information from mysql into arrays so i can use it
more than once and then i could do multiple populated list boxes ? let me

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to