ESP Logo

Reports Example

Home · Books · HTMLDOCMyESP: Login

Easy Software Products will be closed October 13, 2008 for Columbus Day. We wish you a safe and pleasant holiday! Online orders and support requests may still be placed on our web site, however we will not be making any shipments until our office re-opens.

The reports example is a simple PHP script (view source) which shows sales reports pulled from a MySQL database as either HTML or PDF. It uses HTMLDOC's CGI mode to convert the HTML reports into PDF format.

Showing from: to:

Total Sales by Salesperson

Salesperson    Total Sales
Sam Harmon   $124,953.24 (23.5%)
Mary Jones   $111,485.92 (21.0%)
Patricia Bloomer   $106,243.85 (20.0%)
Lindy Wood   $100,199.34 (18.8%)
John Smith   $51,651.41 (9.7%)
Frank Logan   $37,363.80 (7.0%)
Total Sales   $531,897.56

Total Sales by Category (All Salespeople)

Product Category    Total Sales
Media   $111,408.22 (20.9%)
Filing   $104,111.87 (19.6%)
Software   $93,284.89 (17.5%)
Paper   $62,787.65 (11.8%)
Pens and Pencils   $53,343.87 (10.0%)
Staplers and Tape   $51,027.61 (9.6%)
Paper   $33,214.96 (6.2%)
Ink and Toner   $22,718.53 (4.3%)
Total Sales   $531,897.60
About ESP · Contact Us · Legal Notices · Privacy Policy · Terms and ConditionsCopyright 1993-2008 Easy Software Products, All Rights Reserved.