<select name=manufacturer>\n";
$sql = "select distinct trim(manufacturername) as mname from tblProducts order by manufacturername";
if(!$result = mysql_query($sql))
{
echo mysql_errno().": ".mysql_error()."<br>$sql";
exit;
}
while($row = mysql_fetch_array($result))
{
$manufacturername = $row[mname];
echo "<option value='$manufacturername'>-$manufacturername-";
}
echo "</select>";
Ok I have gotten farther. I forgot the as mname portion. But I still see both entries with a space and without.