Jump to content


Photo

Just an SQL question !


  • Please log in to reply
1 reply to this topic

#1 christo

christo
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 03 May 2006 - 10:38 PM

Well i would like to know if i can use OR at my requests...

$query = "SELECT * FROM object WHERE city = '$city' AND transaction = '$transaction'
AND accomodation = '$accomodation' AND nb_rooms = '$nb_rooms' AND price = '$price' AND
age_par = '$age_par'";

for exemple replacing AND with OR above. Would that work ? I haven't found much on the net about it:(

christos

#2 KrisNz

KrisNz
  • Members
  • PipPipPip
  • Advanced Member
  • 271 posts
  • LocationAuckland, New Zealand

Posted 04 May 2006 - 01:38 AM

Why don't you try it and find out?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users