I have the following while
loop, which I used to create a drop-list select containing date fetched from database:
$sql = "SELECT name FROM persons";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
echo "<option value='" . $row['name'] . "'>" . $row['name'] . "</option>";
}
The while loop prints an additional empty line into the drop list, i.e. there is an empty line appearing in the list. How can I avoid that?