Skip to content

DHTMLX connector support php 7 live server  #17

Description

@chrismart123

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions