Jump to content

Not all rows are being selected.


blackairplane

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.