PDA

View Full Version : Searching Script



Meti
25-08-2008, 04:04 PM
Hey.
I need a searching script, for websites, so people can search for what they need.
I remember that you could do something like this with frontpage, but I don't have FrontPage anymore.

So, can anyone tell me where I can get a script like this?

Thanks, +rep!

Stepheen
25-08-2008, 04:58 PM
http://www.google.com/sitesearch/

Meti
25-08-2008, 05:00 PM
Won't it say like:
( WHATEVER HERE ) [box]
Search on google () Search on YOURSITE.com ()

Decode
25-08-2008, 05:19 PM
Ignore what front page tells you, its code is extremly tacky. If your site it based arround a mysql database you could simply use the wild card to make a search. Someone would search for "hi" and you could use SELECT * FROM tablename WHERE description = '%hi%' or something like that.

Pazza
25-08-2008, 06:52 PM
http://www.hotscripts.com/Detailed/8688.html

Ironic how you should've searched yourself.

http://www.google.co.uk/search?q=Free+search+script&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a

Meti
26-08-2008, 02:32 PM
The HotScripts thingy doesn't work.

Moh
26-08-2008, 02:42 PM
<?php
$search = $_GET ["search"];
$sql = mysql_query ( "SELECT * FROM `objects` WHERE `title` LIKE '%$search%' OR `description` LIKE '%$search%'" );
while ( $fetch = mysql_fetch_array ( $sql ) ) {
echo ("<a href=\"view.php?id={$fetch["id"]}\">{$fetch["title"]}</a><br>
<i>{$fetch["description"]}</i>");
}
?>

That should work ;)

Meti
26-08-2008, 06:34 PM
Too bad I don't know anything about PHP and MySQL :(
I've found a script now, will try it later.

Want to hide these adverts? Register an account for free!