<?php
require_once('./common/connector/scheduler_connector.php');
$res=mysql_connect("127.0.0.1","root","root");
mysql_select_db("JOOMLA DATABASE");
$conn = new SchedulerConnector($res);
$scheduler->render_table("events","event_id","start_date,end_date,event_name,details");
?>
its contain 2 php file it create hourly timeline when i connect it to same table in another database it works, but when i connect it to joomla database result nothing, someone can help me to improve it as joomla style
You have to change the code as the table name seems incorrect. I dont know about the SchedulerConnector class but i guess first variable is table name
$scheduler->render_table("events","event_id","start_date,end_date,event_name,details");
You need to give the correct table name with extension like
$scheduler->render_table("nt29v_events","event_id","start_date,end_date,event_name,details");
you include nt29v_
in table name if this is your table extension; as you are connecting to Joomla database externally.
I checked the class and I got this
render_table configures connector and retrieves data from single table.
$conn->render_table($table,$id,$text,$extra,$relation);
Parameters:
$table - the name of a table.
$id - the name of the id field.
$text - a comma separated list of data fields.
$extra - a comma separated list of extra fields, optional.
$relation_id - used for building hierarchy in case of Tree and TreeGrid.
S what I guessed was correct Ref: http://docs.dhtmlx.com/connector__php__connector_object_methods.html#rendertable
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.