![]() |
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
|
hey, no need to break a sweat over it :-) just use google :-)
:
<form method="get" action="http://www.google.com/search">And ther you have it, the power of google to search your site. |
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.
|
I agree, just pasted into my code directory... going to revamp my site soon.
|
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 :-? ) |
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. |
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. |
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 :-)) |
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. |
| All times are GMT -5. The time now is 11:23 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC