Re: Are there macros in PHP?
| From: | Rick Emery | Date: | Mon, 23 Dec 2002 18:28:08 +0000 |
| Subject: | Re: Are there macros in PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129212@lists.php.net to get a copy of this message | ||
What happened when you experimented with this code? You did try, right?
----- Original Message -----
From: "Don" <donpro@lclcan.com>
To: "php list" <php-general@lists.php.net>
Sent: Monday, December 23, 2002 11:57 AM
Subject: [PHP] Are there macros in PHP?
> Hi,
>
> I need to search a MySQL table based on a condition that can change at
> runtime.
>
> Example
> ======
> $condition = CustCode = "$HTTP_SESSION_VARS['logoncustcode']";
> <other code>
> $queryID = mysql_query("SELECT * FROM CustTariff WHERE " . $condition . "
> ORDER BY CustCode");
>
> Will the above work?
>
> Thanks,
> Don
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>