I'm getting the error
Fatal error: Uncaught Error: Call to undefined function odbc_connect()
Ive added the extension in php.ini and phpinfo() is confirming that the odbc driver exists (see screenshot)
the php script is just a simple query
<?php
$num_minutes = 10;
ini_set('max_execution_time', (60*$num_minutes));
$conn = odbc_connect("CData Sage50UK Source","manager","password");
$query = odbc_exec($conn, "SELECT * FROM SalesOrders LIMIT 1");
while($row = odbc_fetch_array($query)){
$json1[] = array_map('utf8_encode', $row);
}
echo json_encode($json1);
?>