0
Guys, I’m trying to make a query with a variable that I’m receiving, but it’s not working. Any suggestions ?
$model = $_REQUEST['model'];
$customer = $_REQUEST['customer'];
SELECT * FROM sistema WHERE concluido <> 1 AND site='$site' AND $model='X'
What is the error? And these variables are coming correctly?
– Sr. André Baill
You’re very confused about this. You’re not using $Ustomer, instead you’re using $site. I didn’t understand if the sql string is like this and if you don’t know how to query the database or if it was just an example...
– Jorge B.
Tried to print the query and run straight into the bank?
– rray
I hope that
$model
is not what it seems...– Papa Charlie