Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Comment on

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

Hi,
thx for the nice example, but i got one question,
do you have checked if you insert the data in the right spot ?
i mean if this product and data belongs to sup 1 or 2 or whatever sup or to all the sups.
i hope i can clearify what i mean with this example table build of the example __DATA__

  1 2
Product flag data_s data_f data_s data_f
Promo X 22 106 10 5
Direct U 1      
Special U 1 2    

handling the data is not really a problem, but the right combination of it so it will be in the right place.
i am thinking to build a row array that has 2 +(sups*2) fields,so the data is in the right place but i stuck at the moment in merging the data together so i dont have 2 rows with Promo for example.
i don't use html template because i build my own template set in a package, for headers footers dropdowns forms and so on,but this template example looks good and im thinking of it to use it ;)

kd ultibuzz



UPDATE:i'm thinking to build a hash based data model to put in the data, somethink like:

rowhash { Product => { SUP => { DATA_S,DATA_F } SUP => { DATA_S,DATA_F } } Product => { SUP => { DATA_S,DATA_F } SUP => { DATA_S,DATA_F } } }
then i have all data in the right place.
i woud start adding all products to this hash stucture then all existing sup's, after that fill in data for the product->sup or leave data blank if no data is there.
so wahts your opinion
kd ultibuzz


In reply to Re^2: dynamic website, putting data into right tablefield's by ultibuzz
in thread dynamic website, putting data into right tablefield's by ultibuzz

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!
  • 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
  • Outside of code tags, you may need to use entities for some characters:
            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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others wandering the Monastery: (7)
    As of 2014-07-24 11:16 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite superfluous repetitious redundant duplicative phrase is:









      Results (160 votes), past polls