Good Day! I’m trying to make an Interactive Gantt Chart using DHTMLXGantt however it doesn’t save to MYSQL Db. I followed the steps thoroughly in the Documentation, but it gives me an “Invalid Data” error. What seems to be the problem (Attached is the code)?
myGantt.html
[code]
How to Start with dhtmlxGantt gantt.config.xml_date = "%Y-%m-%d %H:%i"; gantt.init("gantt_here"); gantt.load('data.php'); var dp=new dataProcessor("data.php");
dp.init(gantt);
</script>
[/code]
data.php
[code]
<?php include ('codebase/connector/gantt_connector.php'); $res=mysql_connect("localhost","",""); mysql_select_db("gantt"); $gantt = new JSONGanttConnector($res); $gantt->render_links("gantt_links","id","source,target,type"); $gantt->render_table( "gantt_tasks", "id", "start_date,duration,text,progress,sortorder,parent" ); ?>[/code]