Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHTMLX connector support php 7 live server #17

Open
chrismart123 opened this issue Sep 20, 2018 · 0 comments
Open

DHTMLX connector support php 7 live server #17

chrismart123 opened this issue Sep 20, 2018 · 0 comments

Comments

@chrismart123
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant