PDA

View Full Version : How do I make a searchable website?


ecolodge
07-09-2004, 05:31 PM
Basically I need a search function on my homepage. I haven't created my site yet, since I didn't want to have to start over just in case. It seems that ASP and CGI and MySQL is part of the equation but I cannot find how to actually script and code it.

The site is going to be really basic. Just the search feature. Basically I am going to have new movie reviews and I want the user to search for a movie. Now, I think I need to make seperate pages for each movie, right? And the site will always be updated as new reviews are made.

If a user types the movie in correctly, I want that page to automatically load, no extra clicking. If they type it in wrong, then maybe a list of close matches comes up. In theory this doesn't sound too hard. Oh, does the coding search the titles or actual content of webpages? Also, if I go through a free service like Geocities, will the servers allow me to even do this? \

Any help is much appreciated. Even a link to a search script tutorial is okay too. THANKS EVERYONE!

oracleguy
07-09-2004, 09:37 PM
Basically I need a search function on my homepage. I haven't created my site yet, since I didn't want to have to start over just in case. It seems that ASP and CGI and MySQL is part of the equation but I cannot find how to actually script and code it.

Yes you will need a server-side language like ASP and a database system like MySQL.


The site is going to be really basic. Just the search feature. Basically I am going to have new movie reviews and I want the user to search for a movie. Now, I think I need to make seperate pages for each movie, right? And the site will always be updated as new reviews are made.

The way to do it would be to have all the movie reviews in a database, that makes it easy to search and maintain. Then you just have one page that fills with whatever review specified.


If a user types the movie in correctly, I want that page to automatically load, no extra clicking. If they type it in wrong, then maybe a list of close matches comes up. In theory this doesn't sound too hard. Oh, does the coding search the titles or actual content of webpages? Also, if I go through a free service like Geocities, will the servers allow me to even do this?

That'd be easy, when the page queries the db for results, if there is only one, it can redirect the user to it easily enough. Places like Geocities usually do not allow you to use server-side languages muchless databases.

Ben@WEBProp
07-09-2004, 09:50 PM
These *might* help...they sound pretty easy to incorporate and mess with...

http://www.webdesigntalk.net/showthread.php?s=&threadid=35856&highlight=hotscripts

-Ben