For use with SQL query.
Is it possible to pass an OR through GET?
variable=value OR othervalue
Or is it just easier to define multiple variables and then make the SQL filter from the multiple variables.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should pass your
GETparameters like so:In your script, these will be stored in
$_GET[variable]as an array:Array ( [0] => happy [1] => sad )You can then bind the parameters and send your statement (haven’t tested):