Scheduler php and mysql

I need to work with php , store and display information saved in mysql . Below is my code:

index.php

[code]

How to start
<div id="scheduler_here" class="dhx_cal_container" style='width:1000px; height:600px;'>
<div class="dhx_cal_navline">
    <div class="dhx_cal_prev_button">&nbsp;</div>
    <div class="dhx_cal_next_button">&nbsp;</div>
    <div class="dhx_cal_today_button"></div>
    <div class="dhx_cal_date"></div>
    <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
    <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
    <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
</div>
<div class="dhx_cal_header"></div>
<div class="dhx_cal_data"></div>     
<?php require_once("dhtmlxScheduler_v4.3.1/codebase/connector/scheduler_connector.php"); $res=mysql_connect("localhost","root","satinvio"); mysql_select_db("agenda"); $conn = new SchedulerConnector($res); $conn->render_table("events","id","start_date,end_date,text"); ?> [/code]

Mysql database: agenda

CREATE TABLE `events` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`start_date` DATETIME NOT NULL,
	`end_date` DATETIME NOT NULL,
	`text` VARCHAR(255) NOT NULL,
	PRIMARY KEY (`id`)
)

Gente, alguém que trabalhe com Scheduler do DHTMLX???

You need to move php code in the separate file ( lets say data.php ) and after scheduler.init add one more line to load data into the scheduler

scheduler.load(“data.php”);

Can provide hum Example Making, please?

Grab the standard Scheduler package and check the next files

  • samples\01_initialization_loading\05_loading_database.html
  • samples\01_initialization_loading\data\events.php