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, yes. Doing things at run-time is what web server-side languages are all about.

HTH
Chris


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

Reply via email to