Answer the question
In order to leave comments, you need to log in
The request is not executed, how to write it correctly?
have a request
$result = $connect->query("SELECT * FROM pag WHERE (id='$id' and name='$name') or (id='$id' or name='$name')");
Answer the question
In order to leave comments, you need to log in
Either
or
in the current form the request does not make sense.
And to work with the database, you do not need to shove variables directly into the request, but use placeholders
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question