Jump to content


Photo

Need help with selecting multiple WHERE conditions...


  • Please log in to reply
1 reply to this topic

#1 gtridez

gtridez
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 06 July 2006 - 08:32 PM

Hey guys...i'm wondering if anyone knows how to have multiple WHERE conditions...

example --> SELECT * FROM table WHERE rid=$ride && uid=$userid && accepted='0'

I need help selecting rows where all three of the conditions above are met...anyone knows how to do this?
any help will be greatly appreciate...
thanx



#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 06 July 2006 - 11:21 PM

Why not use the word "AND"?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users