我的项目有问题,数据库中的数据无法在ganttchart dhtmlx中显示
这是我在data.php中的代码
<?php
include ('../../codebase/connector/gantt_connector.php');
$res=mysql_connect("localhost","root","");
mysql_select_db("gantt");
$gantt = new JSONGanttConnector($res);
//$gantt->render_links("gantt_links","id","source",target,type");
$gantt->render_table(
"schedule",
"id",matrl,"cust_name","po_num",
"start_date,duration"
);
?>
答案 0 :(得分:2)
您正在为render_table使用一组奇怪的参数 它必须是render_table(table,id,fields)
$gantt->render_table(
/*table*/ "schedule",
/*id*/ "id",
/*fields*/ "start_date,duration,matrl,cust_name,po_num"
);