Hello dan667, welcome to perlmonks. :)

I'm not sure how Perl related your question really is, but since this is a Perl site, I'm going to give you a perl answer.

I think you are on the right track with esentially defining some meta fields about the items you are storing. There are probably more advanced ways to do something like this, but for a beginner, the more simple your solution, the better its chances of succeeding.

Anyway, after you've set up your database, you'll need to set up a form that requests the parameters that will be searched on. This form will post to a CGI application, and that's where Perl actually starts to come into action.

As far as parsing the input, my first suggestion is that you go learn about the CGI.pm module. Once you've gotten your form parameters in, you'll need to actually execute a query on your database. That means you need to go learn about DBI. Once you've mastered that, you really have everything you'll need to put the search together and display the results, but you'll probably be doing a lot of work that other people have already done. If you want to construct a search query for your database with the least amount of effort, I suggest you look at DBIx::Recordset. I've had a lot of good results with that module.

Anyway, that should get you started. I'm sure you will have more queestions as your project progresses.


In reply to Re: simple example source code for building a web catalog by ehdonhon
in thread simple example source code for building a web catalog by dan667

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.