Hello,
I have the following code on my connector page.
require_once("../codebase/connector/grid_connector.php");
require_once("../codebase/connector/db_mysqli.php");
$res = new mysqli("localhost","USER","PASSWORD","DBNAME");//connects to server with db
$conn = new GridConnector($res,"MySQLi");//initializes the connector object
$conn->enable_log('log.txt');
$conn->render_table("TableName","ID","ID,Emp,Tool,Qty,ToolCode,Notes,Date,Signature");
Whenever this page is called it returns a 500 Error.
No matter what I do I cannot get this to run as expected.
I am running PHP version 7.0.15
on IIS 8.5
On Windows Server 2012 R2
I have mysql installed locally on the machine.
Running the same code on a linux box shows this error in the browser inspector:
[01-May-2017 15:19:13 Australia/Sydney] PHP Fatal error: Class 'MySQLDBDataWrapper' not found in /home/ccccp041/public_html/websites/ToolRegister/codebase/connector/db_mysqli.php on line 8
Please help.