- 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:
gantt-php-mysql-live-edit/ css/ bootstrap-datetimepicker.min.css # bootstrap date picker css. js/ 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. LICENSE live_edit.php # PHP file which performs data operations README.md
Current demo doesn't save gantt chart connectors to simplify the demonstration and database structure.
AnyChart PHP/MySQL integration sample includes two parts:
If you have any questions regarding licensing - please contact us. firstname.lastname@example.org