Can someone tell me if this is possible.

I have a PHP variable which i got from a html form using $HTTP_POST_VAR. I
collect a variable called Community. Therefore is it possible to have an sql
statement like this?

//create sql statement

     $sql = "select businessname from main where businesstype =
'consultancy' and $community != '0'";


if this is not ok how else can i extract a variable from another html page.

Matt.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to