Jump to content

Generate monthly report in table format


orangge

Recommended Posts

I'm very new to php. I need to generate monthly report in tabular format. For example, i have a drop down list with option A, B and C. By select the option, it will create monthly report in table format from Jan - Dec. Below is how is the layout of the output i need to generate:

 

layout.jpg

 

How to generate the monthly report without write the same code again?

Link to comment
https://forums.phpfreaks.com/topic/177313-generate-monthly-report-in-table-format/
Share on other sites

$i = 1;
$totalrows = 3;
while($i < $totalrows) {
echo "CODE FOR EACH ROW";
$i++;
}

 

i would like to know how to generate the table frm Jan - Dec based on what i selected from the drop-down list as the code to generate the table will be most likely to be the same and just the heading will be different. How can i use the loop to generate the table without hard code it. For example, if i selected option 1, it will display the table from Jan - Dec.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.