blackairplane Posted March 9, 2010 Share Posted March 9, 2010 I'm having this issue where I'm populating a <multiple> HTML field with around 500 city names that are stored in a MySQL table, but when the page loads, it is only showing a portion of the rows (city names) with no obvious reason for why it's omitting some. <select multiple="multiple" size="10"> <?php while($row = mysql_fetch_array($result)) { echo "<option value='".$row['name'].">"; echo $row['name']; echo "</option>"; } ?> </select> Link to comment https://forums.phpfreaks.com/topic/194628-not-all-rows-are-being-selected/ Share on other sites More sharing options...
trq Posted March 9, 2010 Share Posted March 9, 2010 Your missing a closing ' in your html. echo "<option value='".$row['name']."'>"; Link to comment https://forums.phpfreaks.com/topic/194628-not-all-rows-are-being-selected/#findComment-1023587 Share on other sites More sharing options...
blackairplane Posted March 9, 2010 Author Share Posted March 9, 2010 Wow. It's the little foxes that spoil the vine. Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/194628-not-all-rows-are-being-selected/#findComment-1023594 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.