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> Quote Link to comment 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']."'>"; Quote Link to comment 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! 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.