jd2007 Posted July 13, 2007 Share Posted July 13, 2007 $query = "SELECT Searching.page_title, Searching.info FROM Searching WHERE info LIKE '%".$name[$j]."%'"; the code above finds matches for $name[$j] in info column in the table Searching...how do i find matches for $name[$j] in all the columns of the table 'Searching'? Quote Link to comment Share on other sites More sharing options...
trq Posted July 13, 2007 Share Posted July 13, 2007 $query = " SELECT page_title, info FROM Searching WHERE info LIKE '%{$name[$j]}%' OR foo LIKE '%{$name[$j]}%' OR bar LIKE '%{$name[$j]}%' "; Quote Link to comment Share on other sites More sharing options...
jd2007 Posted July 13, 2007 Author Share Posted July 13, 2007 thanks ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.