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
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
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,
3 matches
Mail list logo