[PHP] option tags and WHILE

2001-08-19 Thread CGI GUY
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); ?

Re: [PHP] option tags and WHILE

2001-08-19 Thread David Robley
On Mon, 20 Aug 2001 12:23, CGI GUY wrote: 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]\

RE: [PHP] option tags and WHILE

2001-08-19 Thread Rudolf Visagie
Also while ($array[1] = $array[0]) { and not while ($array[1] = $array[0]) { Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: 20 August 2001 07:01 To: CGI GUY; [EMAIL PROTECTED] Subject: Re: [PHP] option tags and WHILE On Mon