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"> </div>
<div class="dhx_cal_next_button"> </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`)
)