The problem with search routines is that it's going to vary from site to site. And you need to know how your data is stored in the first place to know the most effective solution.
Two of the most common ways to do it is either (1) to use a full-fledged database like MySQL or similar; SQL langauge queries have a number of ways you can search for results, and perl is well integrated with SQL searching via the DBI interface; or (2) to use a flat file with one record per line, which allows easy development from perl , but isn't necessarily the best for searching.
There's a number of other solutions, but in nearly all cases, you want to build up the solution for yourself to ensure security of your CGI scripts.
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
| [reply] |
For another approach, you may want to look at ht://Dig, which is a general web site searching tool. It's free C++ software, so depending on your platform, you may need to compile it before using it.
| [reply] |
If you are looking for a site search engine, KSearch is a reasonable hunk of Perl code. If you only want a name and address search engine, you could probably code up something pretty simple to search a DB table with this info or even a file if it's not too large. Don't know how many names or addresses you have or if you will be adding a lot, but if so you'll probably want to code up a simple CGI form to add entries. You seem to want somebody to just give this to you, but it really wouldn't take that much to DIY. If you get stuck or want further info on how to go about doing it you can post for more help. You're pretty vague here, but it sounds like a fairly simple thing to create on your own.
-THRAK
www.polarlava.com
| [reply] |
There is a very excellent series of tutorials with full working
code on this very subject called Working with Data Files By Brent Michalski.
"This is the first part of a series that will build,
piece-by-piece, a database application which uses the Web
as its front-end."
It delivers!
| [reply] |