Custom Scheduler Field in Database

Hello,

How i can save scheduler with custom databases table field?
I have table structure like this :

--------------------------------------------------------------------------------------------------+
event_id | user_id |event_name |start_date |end_date |details
--------------------------------------------------------------------------------------------------+

I just add “user_id” column, and in my scheduler user_id’s value get from Session.
So i try to edit my connector like this :

[code]<?php
include “…/connectors/scheduler_connector.php”;

$res = mysql_connect("localhost","root","");	
mysql_select_db("db_koruch");

$scheduler = new JSONSchedulerConnector($res);
$scheduler->render_sql("select * from events where user_id='".$_SESSION['username']."'","event_id","event_name,start_date,end_date,details");

?>[/code]

and it not works. :confused:
how to save that?

Thanks before

Hello,

you forgot to enable sessions in a page with Connector:

<?php session_start(); include "../connectors/scheduler_connector.php"; ...