Writing a full function search is a very complex task, but a simple single word search can be done like this and will show some of the foundations.
- Have the user enter the word to search for.
- Convert the word to upper or lower case.
- Use a LIKE search on the converted title field using the search word.
<?php
$word = strtolower($word);
$query = "SELECT * FROM table WHERE lower(title) LIKE '%" . $word . "%'";
?>
Thats a basic single word search functionality on a table. If you play with this enough you'll find that it doesn't just return word matches but any thing that matches, so if you search word is a substring of a word in your title you'll get that back as a valid search hit. There is a lot of functionality that can be added to a search function that you'll have to decide if you want and then figure out the solution to (i.e. multiple words, all words but, multiple word strings, any word).