Hi all,
I have what I hope is a simple question....
I have a table with several columns, the 2 I am concerned with at the moment are Category and Keywords.
I need to search both of these columns for a word or short phrase that I get from a form.
For example, the search can be 'Antiques' or 'Antique Dealers'
I tried to use this
in several different ways but no joy.
Any help?
Thanks!
Jim
I have what I hope is a simple question....
I have a table with several columns, the 2 I am concerned with at the moment are Category and Keywords.
I need to search both of these columns for a word or short phrase that I get from a form.
For example, the search can be 'Antiques' or 'Antique Dealers'
I tried to use this
Code:
SELECT name, address, city, phone
FROM valley
where keywords like '%$search%'
OR category like '%$search%'
ORDER BY name LIMIT %d,%d"
in several different ways but no joy.
Any help?
Thanks!
Jim