Jump to content
xisto Community
Sign in to follow this  
leiaah

Search Site Pages Using Keywords?

Recommended Posts

We're doing a "Mock" e-commerce site for our project in Web Development and I was wondering how to make a Search form like the ones in many sites. There will be a Search textbox and a button in the form which will accept a string (keywords) which will then be processed by a script. If there is a match, a page containg the keywords will be displayed. Is there a way to do this using PHP or is there an existing free script out there already? Thanks very much.

Share this post


Link to post
Share on other sites

I've found tons of free scripts at hotscripts. It's really the greatest cause they have some that work without mysql. They work using regular text files and i've had no problem with them at all.round

Share this post


Link to post
Share on other sites

alright that was what i was looking for, couse on one site i have this google flavored search or whatever, but i think that a normal or customized search engine for its own site (a site that does not necesarily has data bases) would be better and more skin personalizable. Thanx for the link! ill give it a closer look.

Share this post


Link to post
Share on other sites

Hey thanks for the link. I'll try to download the script from hotscripts and check it out. I hope I can test it offline. Thanks again! I would not have known how to code it. :P

Share this post


Link to post
Share on other sites

That " Google's custom site search " is a nice alternative...

Allthough I think it is not really proffesional on a site which is made for selling items...
When you build your own search system you could format it in the way you want.. so :)....

The best way to BUILD your own searchsystem is to dynamically format your SQL query's ...

WHERE companyname LIKE '%$searchname%

Share this post


Link to post
Share on other sites

Not a great idea, but it is on the right track. You would need to ensure the search term doesn't contain anything it shouldn't before querying the database.You may also want to allow for 'advanced' searching features, such as enclosing phrases in quotes or using AND and OR operators etc.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.