Re: [PHP] need help with foreach

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 4:09 am, [EMAIL PROTECTED] wrote: > I want to tell the server to do 2 things when I click on the > "jobType" link. > > This is the code that I have now which displays the "art" when I > click on "jobType" > > foreach($row as $jobType) > { >

Re: [PHP] need help with foreach

2006-10-31 Thread Dave Hamber
Its not very clear what you want to achieve with that code snippet. If you are pulling database rows out of your database with mysql_fetch_array(), then you do not need a foreach loop. I think you may want something like this, but without knowing your database table structure and the query yo

[PHP] need help with foreach

2006-10-31 Thread melinem
I want to tell the server to do 2 things when I click on the "jobType" link. This is the code that I have now which displays the "art" when I click on "jobType" foreach($row as $jobType) { $row = mysql_fetch_array($result2,MYSQL_ASSOC); ech