pulldown population not getting the last value

From: Date: Mon, 19 Mar 2001 01:38:36 +0000
Subject: pulldown population not getting the last value
Groups: php.general 
Request: Send a blank email to php-general+get-44470@lists.php.net to get a copy of this message
I'm trying to create a pulldown menu with distinct names from the found set. For some reason I never get the last name. Here's my code; $contact_query = "SELECT DISTINCT name FROM request" . " WHERE id <= '5' OR demo_id = '$demo_id'" . " ORDER BY name"; $contact_result = mysql_query ($contact_query) or die ("Cannot build contact"); while ($contact_row = mysql_fetch_array ($contact_result)) { $name = $contact_row["name"]; $option_contact .= "<OPTION value=\"$name\">$name</OPTION>\n"; } What gives? Any help would be appreciated. Thanks, Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) tom@orbittechservices.com http://www.orbittechservices.com/ >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>

« previous php.general (#44470) next »