DHTMLX Docs & Samples Explorer

dhtmlx Touch : json connector

For all components of dhtmlx touch you can use the next two connectors

  • DataConnector
  • JSONDataConnector

Both works the same, but differs in type of returned data. First one generate xml data feed, second one - json data feed.

require_once("../../connector/data_connector.php");
require_once("../../connector/db_sqlite.php");
 
if (!$db = sqlite_open('db', 0777, $sqliteerror)) {
	die($sqliteerror);
}
 
$data = new JSONDataConnector($db,"SQLite");
$data->render_table("users", "id", "name,age,group_name,city,phone,sex,driver_license");