Why would this code add ablank line to the bottom of the select
that is being built?
<html>
<head>
</head>
<body>
<?php
include("board/db/mysql.php");
include("../dbconnect.inc");
$db = new dbstuff;
$pconnect = '';
$db->connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
$sql = 'select id, teamname from teams ';
$sql = $sql.'where active = 1 ';
$sql = $sql.'order by teamname';
$query = $db->query($sql);
echo ' <select name="team" size="1">';
while (list($id, $teamname)=$db->fetch_row($query))
{
// want to add OPEN at bottom so skip here
if ($id <> 36) {
echo ' <option value="'.$id.'"';
echo '>'.$teamname.'</option>';
echo ' <option value="'.$id.'"';
}
}
echo ' <option value="36"';
echo '>OPEN</option>';
echo ' <option value="36"';
echo '</select>';
echo '<form name="form">';
echo '</form>';
?>
</body>
</html>