Hello everyone,
I am using scheduler in dhtmlx.
So in that I want to set color for each event from database.
Using one table it’s fine(setting color if it is in primary table while joining).
I want to set color of event when color column is in secondary table in table joining.
I am using php and mysqli.
this is my index.php file
[code]
How to start html, body{ margin:0px; padding:0px; height:100%; overflow:hidden; }And this is connector
[code]<?php
require_once("…/…/codebase/connector/scheduler_connector.php");
require("…/…/codebase/connector/db_mysqli.php");
$mysqli = new mysqli(‘localhost’, ‘root’, ‘’, ‘mycalendar’);
$list->render_table(“events”,“id”,“textColor(value),textColor(label)”);*/
$details = new JSONDataConnector($mysqli, “MySQLi”);
$details->configure(“users”,“id”,“textColor,color,username”);
$details->enable_log(“logd.txt”,true);
$events = new JSONSchedulerConnector($mysqli, “MySQLi”);
$events->mix(“users”, $details, array(
“id” => “user_id”
));
$events->enable_log(“log.txt”,true);
$events->render_table(“events”,“id”,“start_date,end_date,text,rec_type,event_pid,event_length,user_id”,"","");
?>[/code]
Please help!!!