DHTMLX / connector-php

PHP extension for the DHTMLX library
http://dhtmlx.com/docs/products/dhtmlxConnector/index.shtml
GNU General Public License v3.0
26 stars 28 forks source link

Fatal error: Call to a member function quote() on resource #18

Closed Hector-Aguilar-STD closed 5 years ago

Hector-Aguilar-STD commented 5 years ago

Hi everyone,

I'm just trying to use that code and reproduce an example connecting with my database. My code for connect:

`include ('library/codebase/scheduler_connector.php');

$res=mysql_connect('xxx.xxx.xxx.xxx:xxxx','user','password'); mysql_select_db("schema");

$calendar = new SchedulerConnector($res); $calendar->render_table("scheduler","id","start_date,end_date,text","type");`

Hector-Aguilar-STD commented 5 years ago

I took these code here, step 8: https://docs.dhtmlx.com/scheduler/howtostart_connector.html

Hector-Aguilar-STD commented 5 years ago

I tried with PDO and looks like it works.

$res= new PDO('mysql:dbname=schema;host=xxx.xxx.xxx.xxx','user','password');