pouncer Posted March 11, 2007 Share Posted March 11, 2007 echo " <tr> <td>$name</td> <td>$desc</td> <td> <select name=select> $i = 0; while ($i < $total) { <option>$i</option> $i++; } </select> </td> </tr>"; it displays the drop down boxes, but with no data, why not? Link to comment https://forums.phpfreaks.com/topic/42168-trying-to-add-data-to-my-table/ Share on other sites More sharing options...
marcus Posted March 11, 2007 Share Posted March 11, 2007 Use a for. for($i=0;$i<$total;$i++){ echo "<option>$i</option>\n"; } Link to comment https://forums.phpfreaks.com/topic/42168-trying-to-add-data-to-my-table/#findComment-204574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.