Hello, this question is almost embarassing to ask, but I can't seem to get it worked out. The script I'm working on now takes user input from a form then reads from a database and displays the entire updated contents of it in a table. The only problem I'm having with it now is that instead of just repeating the TR and TD tags in the table, it repeats the whole table so instead of
<table> <tr> <td></td> </tr> <tr> <td></td> </tr> </table>
I have
<table> <tr> <td></td> </tr> </table> <table> <tr> <td></td> </tr> </table>
etc... I've tried moving print $q->table({-border=>'1', -width=>'560', -cellpadding=>'0', -cellspacing=>'0'}, but no matter where I've put it, all it's given me is errors. There has to be an easy way of doing this that I'm not seeing. If anybody could point me in the right direction, I'd greatly appreciate it.

In reply to using 'use CGI;' and tables by bscruggs99

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.