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)
[EMAIL PROTECTED]
http://www.orbittechservices.com/
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]