Hello support,
i’m trying to use a connector with MySQLi (PHP).
But I get the following error message:
[code]Warning: mysqli::mysqli() expects parameter 1 to be string, object given in [PATH_TO_CONNECTOR]/base_connector.php on line 308
Fatal error: Call to undefined method mysqli::select() in [PATH_TO_CONNECTOR]/base_connector.php on line 422[/code]
Maybe you can’t reproduce it, since I added some comments to the code to understand some things better.
The critical line that produces the warning is:
$this->sql = new $this->names["db_class"]($db,$this->config);
This is my init:
$gridConnector = new GridConnector([MySQLi-Object], "MySQLi");
Maybe the connection handle (I use the returned value from MySQLi-Object init in PHP) is supposed to be something different… ?