Thanks for the extra info. Forgive me if I'm wrong, but it sounds to me like you're a bit green at web development, or at least at CGI programming. Here's some advice that might get you going.

The basic catalogue should generally consist of two main components: A way of determining what products the customer wants to see, and a way of getting that information from your database to the customer's screen.

To determine what it is your customer want's to see, you'll want to read the parameters in the url. If an address such as http://www.mystore.com/catalogue.pl?category_id=201 were requested, your script catalogue.pl should use the CGI module to read the category requested, then construct a SQL query and query the database using the DBI module.

The database will (hopefully) return some product information for you. You'll probably want to loop through this info, and display it to the user in a useful form. This should at least get you started with a functional catalogue.

One more thing I'd suggest is that you look at using a templating system (my favourite is the Template Toolkit) to separate your application code (Perl) from your presentation code (HTML/Javascript/...). It will make your life much, much easier. :-)

Good luck, and just ask if you have any more questions.


_______________
DamnDirtyApe
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
            --Friedrich Nietzsche

In reply to Re: Re: Re: cgi Beginner by DamnDirtyApe
in thread cgi Beginner by willyb21

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.