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

Connecting to Database

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

Client-side init

var myList = new dhtmlXList("someContainer"); // initializes List
var myDP = new dataProcessor("php/data.php"); // initializes dhtmlxDataProcessor

Server-side init

    $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