[PHP] Are there macros in PHP?

2002-12-23 Thread Don
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

Re: [PHP] Are there macros in PHP?

2002-12-23 Thread Rick Emery
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

Re: [PHP] Are there macros in PHP?

2002-12-23 Thread Chris Hewitt
Don wrote: $condition = CustCode = $HTTP_SESSION_VARS['logoncustcode']; other code $queryID = mysql_query(SELECT * FROM CustTariff WHERE . $condition . ORDER BY CustCode); Not sure about the multiple assignment (I have not looked it up in the manual), but otherwise the principle is right,