Check documentation for the latest version of dhtmlxSuite Connecting to Database DHTMLX Docs

Connecting to Database

The same as any other data-driven component dataview can load and save data by means of connectors.

Client-side Initialization

var myDataView = new dhtmlXDataView("someContainer"); // initializes DataView
var myDP = new dataProcessor("php/data.php"); // initializes dhtmlxDataProcessor

Server-side Initialization

    $conn = new PDO("mysql:dbname=dataview;host=localhost","root","");
    $data = new DataViewConnector($conn);
//table name, ID, list of properties

Related sample:  Connecting to database

Back to top