What happened when you experimented with this code?  You did try, right?

----- Original Message ----- 
From: "Don" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
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
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to