I am working with the server side PHP data connector and DataProcessor. I have my code working fine (able to load and edit a backend MySQL table) when I create the connection using mysql_connect – my php code is below.
$conn = mysql_connect($servername,$username,$password);
mysql_select_db($dbname, $conn);
$dbtype = “MySQL”;
$data = new JSONDataConnector($conn, $dbtype);
$data->render_table(“mytable”,“myid”,“field1,field2,field3”);
However, the table is not being rendered when I try to create the connection using mySQLi (PHP’s MySQLi Extension):
$conn = new mysqli($servername,$username,$password,$dbname);
or PDO (PHP Data Objects):
$conn = new PDO(“mysql:host=$servername;dbname=$dbname”, $username, $password);
Are these connection options not supported or am I doing something wrong? My understanding is the mysql_connect is deprecated and not even included in PHP 7. Are there plans to support these options in the near future?