ChartDirector Ver 5.0 (PHP Edition)

Database Sample Code Overview

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

- Verify that your PHP has MySQL extensions installed
- Set up a MySQL server to run on the same machine as the web server
- Create a database called "sample" in your MySQL server
- Create an account with username "test" and password "test" that can be used to access "sample".
- Import the table "sample.sql" (located in the "phpdemo" subdirectory) into the "sample" database

All ChartDirector database sample scripts described in this documentation are based on a MySQL database. The sample scripts are provided for reference purposes. To actually run the sample scripts, 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 Name | Type
--- | ---
TimeStamp | Date/Time
Hardware | Number
Software | Number
Services | Number

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.

© 2009 Advanced Software Engineering Limited. All rights reserved.