Error with duration in hours and connector

Using the sample code in /01_initialization/04_connector_json.html, I have successfully created a gantt chart that loads data from MySQL on my box.

Wonderful. Everything works perfectly.

When I try to extend the sample code from 03_scales/07_minutes_scale.html to load exactly the same data I consistently get the error: Error Type: LoadXML Description: Incorrect XML

I think the error lies in the connector expecting an int, but when you use a float to express 1.5 hours duration, the connector does not like it.

Any suggestions on how to fix this would be greatly appreciated. Thanks.

Here is my html:

Minutes timeline html, body { height: 100%; padding:0px; margin:0px; overflow: hidden; }

Here is my PHP:

<?php //events.php //include ('../../codebase/connector/db_mysqli.php'); include ('../../codebase/connector/gantt_connector.php'); // SQLite //$dbtype = "SQLite3"; //$res = new SQLite3(dirname(__FILE__)."/samples.sqlite"); // Mysql $dbtype = "MySQL"; $res=mysql_connect("localhost", "root", ""); mysql_select_db("gantt"); $gantt = new JSONGanttConnector($res, $dbtype); //$gantt->enable_log("temp.log",true); $gantt->mix("open", 1); //$gantt->enable_order("sortorder"); $gantt->render_links("gantt_links", "id", "source,target,type"); $gantt->render_table("gantt_tasks","id", "start_date,duration,text,progress,sortorder,parent",""); ?>

Thanks again

fixed my issue, white space in front the the <?php tag