DHTMLX / connector-php

PHP extension for the DHTMLX library
http://dhtmlx.com/docs/products/dhtmlxConnector/index.shtml
GNU General Public License v3.0
26 stars 29 forks source link

DHTMLX connector support php 7 live server #17

Open chrismart123 opened 6 years ago

chrismart123 commented 6 years ago

Hi Im using Dhtmlx Scheduler, but seems i can connect to the live database, itried using the code below but its not working..

data.php require_once(dirname(FILE).'/lib/dhtmlxScheduler/connector/scheduler_connector.php'); include('./config.php'); $scheduler = new JSONSchedulerConnector($res,$dbtype); $roomtypes = new JSONOptionsConnector($res, "PDO"); $roomtypes->render_table("ns_room_types","idx","idx(value),room_name(label),name"); $scheduler->set_options("roomType", $roomtypes);

config.php require_once(dirname(FILE).'/lib/dhtmlx_codebase/connector/db_pdo.php'); $dbtype = "PDO"; $res = new PDO("mysql:dbname=felladmin;host=localhost","xxx","xxx")

this is not displayig or retrieving any data, but if i tried this other code

// require_once('./lib/dhtmlx_codebase/connector/dataview_connector.php'); // $conn = new PDO("mysql:dbname=felladmin;host=localhost","felladmin","Fella@talamban"); // $data = new DataViewConnector($conn); // $data->render_table("ns_room_types","idx","idx(value),room_name(label),name");

this retrieves data, why is the scheduler_connector not working? im working in the live server, but im my local seems to be working fine, hope to hear from you soon.