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'? Link to comment https://forums.phpfreaks.com/topic/59758-solved-phpmysql/ 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]}%' "; Link to comment https://forums.phpfreaks.com/topic/59758-solved-phpmysql/#findComment-297039 Share on other sites More sharing options...
jd2007 Posted July 13, 2007 Author Share Posted July 13, 2007 thanks ! Link to comment https://forums.phpfreaks.com/topic/59758-solved-phpmysql/#findComment-297087 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.