I'd like to make a few changes here to hopefully answer the original question.

On Wednesday 28 July 2004 01:35 pm, Ed Lazor wrote:
echo "<select name=\"record\">";
while ($record = mysql_fetch_array($results)) {
        if ($_POST["record"] == $record["ID"]){ 
                $SELECTED = " SELECTED "; 
        } else { 
                $SELECTED = ""; 
        }
        echo "<option value='" . $record["ID"] . "' ".$SELECTED.">" . 
$record["Title"] .
"</option>\n";
}
echo "</select>";



James Hicks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to