Don wrote:
Not sure about the multiple assignment (I have not looked it up in the manual), but otherwise the principle is right, yes. Doing things at run-time is what web server-side languages are all about.$condition = CustCode = "$HTTP_SESSION_VARS['logoncustcode']"; <other code> $queryID = mysql_query("SELECT * FROM CustTariff WHERE " . $condition . " ORDER BY CustCode");
HTH
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php