Everything looks ok to me, and I only get one row in a list box.
Here is the db side of the script:
<?php
$connection = @mysql_connect("localhost", "root") or die("Could not Connect to Database Server");
$db = @mysql_select_db("move_db", $connection) or die("Could Not Select Database");
$sql = "SELECT ID, FirstName, LastName FROM managers ORDER BY LastName";
$result = @mysql_query($sql, $connection) or die("Could Not Execute Query");
while ($row = mysql_fetch_array($result)) {
$id = $row['ID'];
$fname = $row['FirstName'];
$lname = $row['LastName'];
}
?>
Here is the listbox code:
<? echo "<select name=\"id\" >
<option >- Please Specify a Manager -</option>
<option value= \"$id\"> $lname, $fname</option>
</select>
" ;
?>