Forum Moderators: coopster
I wonder if anyone can point me in the right direction on this, I am trying to search multiple columns on a single database and display the info.
I have this set up but it only queries one.
$query_rsSearch = sprintf("SELECT * FROM database WHERE column1 LIKE '%%%s%%'", $colname_rsSearch);
The above works fine for one column but I am having difficulty making it search more than one, I have been trying this method.
$query_rsSearch = sprintf("SELECT * FROM database WHERE column1,column2 LIKE '%%%s%%'", $colname_rsSearch);
But continually get error messages?
Any pointers would be appreciated.
Thank you
Karl :)