PDA

View Full Version : PHP search form


x-statik
01-28-2003, 10:20 PM
I know this is a stupid question but Im a beginner in PHP and know nothing. I need to know how to create a search form that will search a website and return the results. Can anyone give me any sample script? PLEASE?

scoutt
01-29-2003, 10:32 AM
what are you seaching? html files or stuff in a db?

x-statik
01-29-2003, 12:54 PM
html....

scoutt
01-29-2003, 01:02 PM
that is where it will get difficult. you will have to open every single document to search it, then close it and open the next one.

your best bet is to have it in the db. a lot easier

x-statik
01-29-2003, 07:41 PM
ok thanks. how exactly would i do that though?
type in every keyword and tell which html file it is in?

scoutt
01-29-2003, 07:59 PM
well since you are a beginner all I can tell you is to read the php manual at www.php.net

if I just gave you the code you wouldn't know what to do with it. no offense but you need to learn first. if not there are plenty of already made scripts at www.hotscripts.com . take your choice.