PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

PHP search engine script for dynamic websites

August15

Build your own search engine for websites by using PHP, MySQL and javascript validation. Just don’t bother with the paid ones ;)

I was browsing the internet and saw a bunch of search engine scripts for high as 200USD+. I was like woh… thats money. I mean why spend so much money on search engine scripts when you create one with simple logic. You can always get free scripts on the web and on my website but the one that I will discuss below is something I have created and used.

Requirements

  • MySQL
  • PHP

User should have programming knowledge of PHP and MySQL. OR just check other free search engine scripts on this website which does not require any technical knowledge

Demo

See the top of phpjavascript.com. The search engine used is the same.

Installation

Step 1: Download and extract all files on the local web server� (http://localhost) or any domain on the internet eg: ftp://www.phpjavascript.com/wwwroot

Step 2: Create a mysql table/tables which is required to be searched, in this case table “script”. Extract file “mysql.txt” use the code for creating and populating table “script”

Step 3: Test! It should be working now.

Note:

  • The search engine script will search only table “script”. You have to customize the code in searchresult.php to incorporate the table that probably your website is using.
  • checksearch.js is just a validation script for the search html form (index.php)
posted under PHP

Email will not be published

Website example

Your Comment:

 

3,063 spam comments
blocked by
Akismet