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.
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.