I am a newbie teaching myself, please be patient!
I have a flat file DB that I am accessing through the query string eg. 'offers.cgi?Category&Subcategory' or in the case of getting a list of the subcategories within a category: offers.cgi?Category - This is working fine. I have a hash with the subcats in and the number of offers in each subcat (the flat file is pipe delimited and the fields are cat|subcat|company|add1|add2 etc.)
I am outputting the list of subcats with the number of offers in brackets.
The problem I am having is really a perl/HTML formatting problem I think. I want to be able to display the subcats 3 per table row as in:
<TR>
<TD>1st subcat</TD>
<TD>2nd subcat</TD>
<TD>3rd subcat</TD>
</TR>
<TR>
<TD>4th subcat</TD>
<TD>5th subcat</TD>
<TD>6th subcat</TD>
</TR>
etc. can any1 help me on this??
I can supply more code, so you know what I am doing with the rest of the script.
Thanks in advance.
In reply to Output
by Lloyd
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.