leiaah 0 Report post Posted September 16, 2005 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
deadlytedly 0 Report post Posted September 16, 2005 MySQL based content managers like PHPbb tend to have their own custom search engines as you are searching dynamic pages in a MySQL database.You could try using Google's custom site search though. Share this post Link to post Share on other sites
round 0 Report post Posted September 16, 2005 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
Lozbo 0 Report post Posted September 17, 2005 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
leiaah 0 Report post Posted September 18, 2005 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. Share this post Link to post Share on other sites
vitrus 0 Report post Posted October 12, 2005 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
Spectre 0 Report post Posted October 18, 2005 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