Jump to content


Searching Database Tables

  • Please log in to reply
1 reply to this topic

#1 phpnewbie1989

  • Members
  • PipPip
  • Member
  • 11 posts

Posted 04 October 2006 - 12:43 AM

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?

#2 tleisher

  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts

Posted 04 October 2006 - 01:09 AM

mysql_query("SELECT * FROM `table` LIKE '%keyword%' OR LIKE '%keyword2%'")

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users