Ran this mySQL query first
- Code: Select all
ALTER TABLE phpbb_posts ADD FULLTEXT(post_text);
Then simply write the php search engine script for it. Simply create a new form with submission form code. The important part is to run this query to catch all the posts with matching keywords:
- Code: Select all
$query = "select * from phpbb_posts where match(post_text) against ( '$keywords' )
order by post_time";
I will provide the source code later on.