Code which you are using creates autonomous scheduler, which doesn’t linked to the database.
Check samples\01_initialization_loading\05_loading_mysql.html
There code which you are missing is the next
[code] scheduler.load(“data/events.php”);
var dp = new dataProcessor("data/events.php");
dp.init(scheduler);
[/code]
first line load data from db, others enable data saving.
for quick start you can just alter db connection and table name in events.php
For more info how connector works, check dhtmlx.com/docs/products/dhtmlxC … ndex.shtml
I successfully got the data from MySQL with the code below!
However - I can’t delete records, from MySQL with it, i can’t add new records (clicking save does nothing). And i can’t get the list from Database to work in ‘Timeline’-mode?
If someone can provide me with a working sample of it, i would be verry thankful!
It’s easier to understand how it works that way!
Now i have noticed another problem, wich i find verry odd.
Even if i just copy over all the code from an example into like new.php, and then save it - i can’t add event.
But if i use the examplecode in it’s original file, it works… strange.
a) Be sure that you have not whitespaces before <?php tag in your new file.
b) Be sure that paths to connector includes in the php files are still valid and you have all connectors file at that location
If someone can provide me with a working sample of it
Next two files includes all logic for scheduler-db data saving.
samples\01_initialization_loading\05_loading_mysql.html
samples\01_initialization_loading\data\events.php
Check viewtopic.php?f=6&t=24051 on your first question.
And for the second one please provide logs. Do you save event in scheduler and it is not being saved in database?