Jump to content

Search Engine


dude1

Recommended Posts

Hi,

 

I want to great a search engine for my web site, i want it so i can add other web sites to the engine and so other users. I am not great at PHP and was wondering if any1 knew any sites that offer a free script or any tutorials that may help??

 

Many thanks,

 

Joe.

Link to comment
Share on other sites

lol, here is a simple one

 

DONT USE IT!

I DIDNT FILTER THE VARS!

<?php


  $keyword = isset($_GET['keywords']) ? "WHERE column_name LIKE '".$_GET['keywords']."%' " : "";

   $search  = mysql_query("SELECT * FROM table1 $keyword");

     while($row = mysql_fetch_array($keyword)){

       echo $row['column_1'] . "<br>" . $row['column_2'];

}


?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.