PHP Classes

empty report?

Recommend this page to a friend!

      Report generating and drawing  >  All threads  >  empty report?  >  (Un) Subscribe thread alerts  
Subject:empty report?
Summary:When I run "report_sample.php" I get an empty report
Author:Geoff Stacey
Date:2012-01-01 17:57:19
Update:2012-01-03 15:51:23

  1. empty report?   Reply   Report abuse  
Geoff Stacey - 2012-01-01 17:57:19

I cannot seem to get the report to produce a result. I am sure it is something simple, but it escapes me. Here is what my report looks.

Report: All animals in zoo

Nick Gender Birth date Weight, kg
Totals for 0
Totals for category 0
Summary for all animals (0) 0

The tables are all there with values, and there is no error message. I echoed the login data and it was all correct for my database. I am testing on an Apache/2.2.21 with PHP/5.3.8 AND MySQL version 5.0.8.

Have you any idea what the problem could be?


  2. Re: empty report?   Reply   Report abuse  
Geoff Stacey - 2012-01-03 10:58:21 - In reply to message 1 from Geoff Stacey
I found the problem, and it was simple. I was assuming that the username, password and database could be passed as parameters (e.g. $username, $password & $database) which had been set up previously. I should have tested this properly, Sorry.
The actual details have to be input into

It is working fine and thank you for this useful class

  3. Re: empty report?   Reply   Report abuse  
Alexander Selifonov - 2012-01-03 15:51:23 - In reply to message 2 from Geoff Stacey
You're welcome !:)