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? Quote Link to comment 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"; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.