dinamik açılan kutu en her satır ile php dinamik tablo

0 Cevap php

i am having an issue with a dynamic table with dynamic combo box's on each row basically whats happening is all the information is getting pulled for a mysql database which is working well in the table sense but not with the combo box's the issue being the first row of the table is doing exactly (combo box and table working) what i want but the following rows are not they're are only displaying one value in the combo box's instead of 3 so i'm figuring its not processing the while loop properly i was wondering if any one had a solution to this.

//Check to see if a driver has been assigned
$driver = $row["driver"];

if($driver==""){
   $select_driver = 'Select Driver' ;
} else{
   $select_driver = $driver;
}

echo ' <tr><td><select name= "stuff"><option value="'.$select_driver.'">'. $select_driver;
while ($row_driver = mysql_fetch_array($dbSearchDriver_result)){
   echo '<option value="'.$row_driver["Username"] .'">'.$row_driver["Username"] .'</option>'; //Echo's each driver 
}
echo '</option></select></td>';

şimdiden teşekkürler

0 Cevap