Jump to content

Archived

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

christo

Just an SQL question !

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

Share this post


Link to post
Share on other sites
Why don't you try it and find out?

Share this post


Link to post
Share on other sites

×

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.