![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Posts: 2
Rep Power: 0
![]() |
How can i make a search engine on my site easily?
I am a new in web design and programming, do you know how i can find a easy way to make a search engine on my site? Please help me
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() |
hey, no need to break a sweat over it :-) just use google :-)
<form method="get" action="http://www.google.com/search"> <input type="text" name="q" size="31" maxlength="255" value="" /> <input type="submit" value="Google Search" /> <input type="radio" name="sitesearch" value="" /> The Web <input type="radio" name="sitesearch" value="yoursite.com" checked />Search This Site </form> And ther you have it, the power of google to search your site.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Pizentios, keep that handy in case I get off my lazy azz and work on the PHP FAQ some more. That's a great snippet.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
I agree, just pasted into my code directory... going to revamp my site soon.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
I have heard of a software called Search Engine Builder Professional available for a trial period. May be that wud help you.
What it does is, based on certain algorithms, it tries to develop a index with keywords and appropriate pages for those keywords. Try it out...much of it is javascript code that runs into many files (If I am recollecting it properly :-? )
__________________
Visit: http://www.somaiya.edu |
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
piz beat me to it. yeah back when i was beginning in javascript there was a tutorial snippet on using google. basically, you're taking the input from a textbox and appending it onto the other crap that google shows in the url box when you search or something of that nature. then you can go to google, right-click on the main picture, save it, resize it, and put it next to your own search box. snazzy for 5 minutes or work.
edit: his way was a bit more succint, and more comprehensive as far as search options.
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#7 | |
|
Programming Guru
![]() ![]() |
Quote:
SELECT * FROM mytable WHERE my_content LIKE '%My KeyWord%' OR my_content LIKE '%some otherkeyword%'; you could have as many OR statments as you wanted. Ofcourse it would depend on how you had your db setup. You have to have the page name or something to identify what page the content is coming from so you could provide links in a search result page. The best part about the first code that i posted, is that it's pure html. clean and simple and you get the power of google.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! Last edited by Pizentios; Sep 28th, 2005 at 10:36 AM. |
|
|
|
|
|
|
#8 |
|
Newbie
Join Date: Sep 2005
Posts: 2
Rep Power: 0
![]() |
Thanks guys..
Pizentios thats google search is really cool but id rather a serach engine without the google logo. But i the only really easy solution :-)) |
|
|
|
|
|
#9 |
|
King of Portal
|
Oracus, I'll refer you to the thread I started about how I made a search engine for my website. PHP Search Engine Script . The only difference here is that in the database, you'd only have your site available for searching, and you'd have to create the keywords, descriptions, title, and URLs for each of the pages on your particular site. The code is all provided there on the thread for you so it doesn't get much easier than that I think, but if you need further help just write on what you saw at my thread and I'll gladly answer back.
Hope that helps.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|