Hi,
From mysql, I'm fetching data to populate multiple (8)
HTML tables for each day, the report spanning an unknown number of dates. At the moment, each table displays a maximum number of items (rows) with a daily total of nearly 900 elements passed to the template with an array ref. Works great.
Attempting db normalization, I realize I'll have tables with an unknown number of items. So I ask myself, "How do I know when one table ends and the next begins?" Each table's data begins with a title: "Category 1", "Category 2"... Do I compare each element and act accordingly? I don't think so, though it will work. Do I dump each category into it's own array of array refs and attempt nested loops? This is what I'd hoped to do but I don't think this will work. I think Category 1 data for all days will be displayed under the first date. Do I embed the HTML with the data? Don't know. I'm going nuts with this. How do you guys do it? Thanks in advance, Jon _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
