RE: [PHP] dynamic IF statement

2003-04-04 Thread Jennifer Goodie
HTTP_GET_VARS["id"] is probably empty so this won't work, stick a $ in front of it. > -Original Message- > From: Leif K-Brooks [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 12:38 PM > To: Tim Haskins > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP

Re: [PHP] dynamic IF statement

2003-04-04 Thread Leif K-Brooks
If I understand you right, you want: if (HTTP_GET_VARS["id"] == $row_rsProducts['prID']){ ...do stuff... } Tim Haskins wrote: How does one create a statement that basically says: " ) { ?> Basically, I want to say, "show if url value is equal to this database record's ID value - The last part is

Re: [PHP] dynamic IF statement

2003-04-04 Thread Steve Keller
At 4/4/2003 11:50 AM, Tim Haskins wrote: > How does one create a statement that basically says: > > " ) > { ?> You make a string with your dynamic statement and then EVAL it. http://www.php.net/manual/en/function.eval.php -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organ