ChartDirector Ver 4.1 (PHP Edition Edition)

Database Sample Code Overview


All ChartDirector database sample codes described in this documentation are based on a MySQL database. The sample codes are provided for reference purposes. To actually run the sample codes, you would need to set up your database system as follows:

All ChartDirector database sample codes described in this documentation are based on a MySQL database. The sample codes are provided for reference purposes. To actually run the sample codes, you would need to set up your database system as follows:

The sample database that contains only one table called "Revenue" . The table stores the monthly revenue data for three business units - Hardware, Software and Services. It contains four columns as follows:

Column NameType
TimeStampDate/Time
HardwareNumber
SoftwareNumber
ServicesNumber

Each row in the database table contains monthly revenues for the business units, where the date is stored in the "TimeStamp" column. The sample database contains rows from Jan 1990 to Dec 2001.