can i use JSONTreeDataConnector with mysqli ?

edited October 12 in Technical questions
$conn = mysqli_connect($DB_HOST, $DB_USER, $DB_PASS,$DB_NAME) ;

$dbtype = "MySQLi" ;

require_once("../../common/connector/data_connector.php")

new JSONTreeDataConnector($conn,$dbtype) ;

$data->render_sql($query,"dcp_id","eqip_code","","das_id") ; 

Warning: mysqli::__construct() expects parameter 1 to be string, object given in C:\AutoSet10\public_html\common\connector\base_connector.php on line 357

Fatal error: Uncaught Error: Call to undefined method mysqli::select()

--> maybe only mysql can connect ... is that right ?

   how can i fix it ?  please let me know...
Tagged:

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!