Good people of the forum world, I am looking to add my own search bar and not one reliant on third party scripts. I just want it to be able to search certain fields of a directory. eg. search for: <title> <description> <url> Any tutorials on a straight forward tutorial will be appreciated, thanks.
You use a SELECT query to select all records with the data you want: SELECT * FROM mytable WHERE title LIKE "this site%" (You get the contents of the WHERE clause from the user.) Then you display the records returned.
If you want to search in MySQL database, then all it needs is a form on front end and search queries to fetch result from the user input. After its matter of displaying the results. Alternate is you can implement Google Custom Search which would be quick, easy and beneficial.
Like mastermunj posted, all you need is a form and search queries to fetch the results. You can use like or fulltext search queries. Google custom search will work if your site is setup properly and if it's not very large.