Re: [PHP] Select list with PHP

2001-02-05 Thread Richard Lynch
: http://chatmusic.com/volunteer.htm - Original Message - From: Gerry [EMAIL PROTECTED] To: Richard Lynch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, February 04, 2001 10:23 AM Subject: Re: [PHP] Select list with PHP This worked! But, I get this color selection increment on each

[PHP] Select list with PHP

2001-02-03 Thread Gerry
Hello: I'm trying to create dinamic color SELECT lists with php. I have my database set up as follows: Paint = good bucket = good weight = 100kg Colors = green, blue, red and here is my php: while ($row = mysql_fetch_array($sql_result)) { echo"trtd"; echo $row["paint"]; echo"/tdtd"; echo

Re: [PHP] Select list with PHP

2001-02-03 Thread Steve Edberg
At 3:24 PM -0700 2/3/01, Gerry wrote: Hello: I'm trying to create dinamic color SELECT lists with php. I have my database set up as follows: Paint = good bucket = good weight = 100kg Colors = green, blue, red and here is my php: while ($row = mysql_fetch_array($sql_result)) { echo"trtd"; echo

Re: [PHP] Select list with PHP

2001-02-03 Thread Richard Lynch
while ($row = mysql_fetch_array($sql_result)) { echo"trtd"; echo $row["paint"]; echo"/tdtd"; echo $row["bucket"]; echo"/tdtd"; echo"form action=\"http://www.\" method=\"POST\""; $Color = $row["Color"]; if ($Color == $Color) { Here is one problem: You can't use $Color for the current