Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Hello Monks,
i've a problem putting the right data into the right place of a table,i think the problem is more in my head then in html.
The Table shoud look like this

  sup_1 sup_2
Product flag data_s data_f data_s data_f
P_Name U 10 36 2 106

The Table is build dynamicly from 3 arrays
the @sup array contains all sup's
the @product array contains all P_Names
the @data array contains the hashref for each row, can have blanks,for test purpose i have a normal array

___sup___ 1 2 3 __product__ Now Promo Special Indirect DATA fields PRODUCT,FLAG,SUP,DATA_S,DATA_F __data__ Promo;X;2;10;5 Promo;X;1;22;106 Direct;U;1;; Special;U;1;2;

The table shoud be build out of @product and @sup, and the informations from @data shoud be inserted if it matches,blanks also
my attemps so far are a forech loop for sup, then a for loop for product checking if sup is true or not and insert data.
this ends up in duplicated P_Names and lots of free tabs in the table,so its totals crap ^^
at the moment ims tuc and don't get an idear how to make it, at the end all tabs will be <inputs> to manipulate the data
the table format can not be changed

kd ultibuzz

In reply to dynamic website, putting data into right tablefield's by ultibuzz

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (7)
    As of 2018-06-18 16:03 GMT
    Find Nodes?
      Voting Booth?
      Should cpanminus be part of the standard Perl release?

      Results (110 votes). Check out past polls.