RE: [PHP] dynamic IF statement

From: Date: Fri, 04 Apr 2003 20:44:13 +0000
Subject: RE: [PHP] dynamic IF statement
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142435@lists.php.net to get a copy of this message
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:eurleif@buyer-brokerage.com] > Sent: Friday, April 04, 2003 12:38 PM > To: Tim Haskins > Cc: php-general@lists.php.net > Subject: Re: [PHP] dynamic IF statement > > > 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: > > > ><?php if (HTTP_GET_VARS["id"] == "<?php echo > $row_rsProducts['prID']; ?>" ) > >{ ?> > > > >Basically, I want to say, "show if url value is equal to this database > >record's ID value - The last part is what I can't seem to get to > work- any > >ideas???

« previous php.general (#142435) next »