Jump to content

problem with or


felito

Recommended Posts

i want to catch the `password` of a specif email when the value of activation is 1 or 2

 

query that i am using:

 

    SELECT password FROM users WHERE email= "[email protected]" && activation=1 OR activation=2

 

this code catches all emails that have `activation = 2`, but my idea is only catch `[email protected]` if the value of `activation` is 1 or 2.

 

any idea?

 

thanks

 

Link to comment
https://forums.phpfreaks.com/topic/240334-problem-with-or/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.