HI monks,
I have a scenario in which i have to generate "dynamic html".
I have data in the form of
Router Interfaces
aab.dsd.ll.com 138.196.122.11,138.196.122.12 etc
First question : i am making a reporting package for bandwitdh utilization in which i will be using mysql to store the data
1 Should i store the above data in a table ?
If anyone adds a new row to my table then i want that routername to get added to the list on the first html page and on clicking it there should be a page showing all interfaces of that router.(click on any one of them and the respective graph appears).
2 or should i just store it in a text file as router,interface1,interface 2 .
Or maybe i could just store in a hash in the script but that wont provide easy config to the maintainer.
More importantly 3 is there any module or technique to generate html on the fly
as soon as someone adds an entry to th db or file the webpage should show the extra links.
I know one way : Read file or db(DBI) ,parse data and then output html for them .But it is ungainly an mixes html and perl code.
Any suggestions?
Regards,
Chimni

In reply to Generating dynamic html by chimni

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.