phpnewbie1989 Posted October 4, 2006 Share Posted October 4, 2006 This may be easy or not, but im wondering to how to make a search engine that will find results for one keyword and another keyword in PHP. I want a person to be able to enter a webpage and fill out a form that asks for a keyword and a second keyword, then it will search a SQL database and come up with the results. How would I program this? Link to comment https://forums.phpfreaks.com/topic/22930-searching-database-tables/ Share on other sites More sharing options...
tleisher Posted October 4, 2006 Share Posted October 4, 2006 mysql_query("SELECT * FROM `table` LIKE '%keyword%' OR LIKE '%keyword2%'") Link to comment https://forums.phpfreaks.com/topic/22930-searching-database-tables/#findComment-103485 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.