Database connection with php

hi, i need some help please (codedigniter framework)
i download a sample working fine in php
so i try right now to connect to mysql the table that ive just created callled events

in config i put this

<?php require_once("./lib/dhtmlxScheduler/connector/scheduler_connector.php"); $res=mysql_connect("localhost:8889","user","pass"); mysql_select_db("events"); $conn = new SchedulerConnector($res); $conn->render_table("events","id","start_date,end_date,text"); ?>

it should work with this or ive just miss something ?
thanks.

Hi,

Have you seen this article and also the demo on the page?
https://docs.dhtmlx.com/tutorials__connector_codeigniter__index.html