javascript - can't load database in dhtmlxgantt php -
I have a problem with my project, the data in the database can not be shown in the Ganttchar dhmtx
This is my code Code in .php
& lt ;? Includes Php ('../../codebase/connector/gantt_connector.php'); $ Race = mysql_connect ("localhost", "root", ""); mysql_select_db ("gant"); $ gantt = new JSongantt Connector ($ res); $ Gantt- & gt; Render_link ("gantt_links", "id", "source", target, type "); $ gantt- & gt; render_ table (" schedule "," id ", metral," cut_name "," po_num "," start_date, duration ";);;>
You are using the strange set of Render_table The parameters for this should be render_table (table, id, field)
$ gantt- & gt; render_table (/ * table * / "schedule", / * id * / "id", / * Field * / "start_date, duration, matral, custom_name, po_num");
Comments
Post a Comment