option tags and WHILE

From: Date: Mon, 20 Aug 2001 02:53:46 +0000
Subject: option tags and WHILE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63443@lists.php.net to get a copy of this message
What's wrong with this code? I keep getting a parse error at the form/select lines... $array = mysql_fetch_array($mysql_result) or die("no go"); print ("<form>"); print ("<select>"); while ($array[1] => $array[0]) { print ("<option value=\"$array[0]\ ">$array[1]</option>\n"); } print ("</select>"); print ("</form>"); ?> __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

« previous php.general (#63443) next »