View on GitHub
To use this sample you must have PHP installed, if not, please, install it as described here; MySQL
installed and running, if not, please, check out MySQL download page and follow
- Required PHP version is 7.0.15
- Required MySQL version is 5.6.36
To start this example, run commands listed below.
Clone the repository from github.com:
$ git clone email@example.com:anychart-integrations/gantt-php-mysql-live-edit.git
Navigate to the repository folder:
$ cd gantt-php-mysql-live-edit
Ensure you have php-mysql installed:
$ php -m
Set up MySQL database, use -u -p flags to provide username and password:
$ mysql -u USER_NAME -p < dump.sql
Drop index.html, data.php, live_edit.php and js and css folders to
a folder where you serve your .php
files and your server (e.g. Apache or Nginx) could get them. Open browser at an appropriate URL.
Run the server, AnyChart gantt chart gets data on page load automatically.
Your workspace should look like:
bootstrap-datetimepicker.min.css # bootstrap date picker css.
bootstrap-datetimepicker.min.js # bootstrap date picker js.
index.js # general functionality.
data.php # PHP file which loads data from MySQL
dump.sql # MySQL database dump
index.html # HTML page that uses ajax for data manipulations.
live_edit.php # PHP file which performs data operations
Current demo doesn't save gantt chart connectors to simplify the demonstration and database
template released under the
AnyChart PHP/MySQL integration sample includes two parts:
any restrictions. It is released under Apache
version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check
If you have any questions regarding licensing - please contact us. firstname.lastname@example.org