This example demonstrates creating a chart using data from a database. This example is
based on the MySQL database. To run this example, you need to:
- 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
After you have performed the above:
If you just want to view the sample code, please use the links below: