I want to use a keyword search to search on the columns 'description' and 'title'. returning results if its in either one
my sql looks like this
$result=mysql_query("SELECT * FROM listing
WHERE listing.Description LIKE '%$_SESSION[keywords]%' AND listing.Title LIKE '%$_SESSION[keywords]%'
that result obviously only returns the result if the keyword is in BOTH columns, if i replace the AND with an OR it goes wrong.
any ideas?
Thanks,
hugh