Jump to content

searching more than one field


Radioactive Frog

Recommended Posts

i have this query for searching one field

 


SELECT * FROM `hotels` WHERE hotelname LIKE \'%j%\'

 

at it works ok, but i would like to search say two more fields i thought it would be like below but that dont work :( please could someone point out where i am going wrong....thanks


SELECT * FROM `hotels` WHERE hotelname OR hotelcountry OR hoteladdress LIKE \'%j%\'

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/1522-searching-more-than-one-field/
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.