Hello, :)

The help you gave me earlier was awesome. The script works wonderfully. I have one quick and hopefully easy question for you.

Shouldn't my table data line up underneath my table headings?

My data shifts back and forth from one row to the next. I pasted the code that creates the table. Any ideas on this would be great?

Here it is...
print table ({-border => 0}, Tr ({-align => "CENTER", -valign=>"TOP", -BGCOLOR=>"silver", -st +yle=>"font-family: verdana; font-size: 10pt;"}, th ({-width=>"50"},("Customer ID")), th ({-width=>"50"},("Customer Order")), th ({-width=>"50"},("Purchase Order")), th ({-width=>"90"},("Ship Date")), th ({-width=>"40"},("Carrier")), th ({-width=>"150"},("Tracking Number")), th ({-width=>"60"},("Item Number")), th ({-width=>"50"},("Wt")), th ({-width=>"50"},("Invoice Number")), th ({-width=>"20"},("Qty")), th ({-width=>"50"},("Customer Item Number")) + )); foreach my $row (@$customer) { print table ({-border => 0}, Tr ({-align=>"center", -valign=>"TOP", -style=>"font-family: verda +na; font-size: 10pt;"}, td ({-width=>"60", -align => "center"},(escapeHTML ($row-> +{customer_id}))), td ({-width=>"70", -align => "center"},(escapeHTML ($row-> +{customer_order}))), td ({-width=>"80", -align => "center"},(escapeHTML ($row->{pur +chase_order}))), td ({-width=>"90", -align => "center"},(escapeHTML ($row-> +{ship_date}))), td ({-width=>"40", -align => "center"},(escapeHTML ($row-> +{carrier_id}))), td ({-width=>"175", -align => "center"},(escapeHTML ($row- +>{tracking_number}))), td ({-width=>"45", -align => "center"},(escapeHTML ($row-> +{item_number}))), td ({-width=>"50", -align => "center"},(escapeHTML ($row-> +{weight}))), td ({-width=>"50", -align => "center"},(escapeHTML ($row-> +{invoice_number}))), td ({-width=>"20", -align => "center"},(escapeHTML ($row-> +{quantity_shipped}))), td ({-width=>"50", -align => "center"},(escapeHTML ($row-> +{customer_item_number}))) ));

In reply to Re: Re: Re: Re: Re: Re: Re: Re: No results from script by b310
in thread No results from script by b310

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.