Convert into a search engine

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hacxx
Forum Newbie
Posts: 3
Joined: Sat Sep 11, 2010 10:06 am

Convert into a search engine

Post by hacxx »

Hi,

I'm posting here looking for anyone that could help me out.

I'm using Newswriter2005 script, it's a simple blog script. I would like to convert the index.php which shows the entries posted in the admin section into a search engine where a user enters a keyword and it shows the entry with the same keyword.

The script can be found at http://newswriter2005.sourceforge.net/

Thanks for your time...

------

http://hacxx.com
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Convert into a search engine

Post by Jonah Bron »

You'll need to create a form with a search field input (perhaps called "q"). In the target page, a script will access $_GET['q'], and use that to scan the database. Try googling for "php search tutorial".
Post Reply