Jump to content

Just an SQL question !


christo

Recommended Posts

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

[code]$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'";[/code]

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

christos
Link to comment
https://forums.phpfreaks.com/topic/9016-just-an-sql-question/
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.