Re: dynamic IF statement
| From: | Leif K-Brooks | Date: | Fri, 04 Apr 2003 20:37:34 +0000 |
| Subject: | Re: dynamic IF statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142432@lists.php.net to get a copy of this message | ||
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??? Thanks! -- Tim Haskins-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.