I have some PhP code to connect to a Pervasive SQL database but it is not working.
See code and screenshots of the Pervasive SQL Drivers as well as the Database ODBC details.
I need help in finding the problem why my script is not working
<?php
//$connect=odbc_connect("Driver={Pervasive ODBC Interface};ServerName=localhost;ServerDSN=P000Lap;","", "", SQL_CUR_USE_ODBC);
//$connect=odbc_connect("Driver={Pervasive ODBC Engine Interface};ServerName=localhost;ServerDSN=P000Lap;","", "", SQL_CUR_USE_ODBC);
$connect=odbc_connect("Driver={Pervasive ODBC Client Interface};ServerName=localhost;ServerDSN=P000Lap;","", "", SQL_CUR_USE_ODBC);
//$connect = odbc_connect("DRIVER={Pervasive ODBC Engine Interface};ServerName=localhost;DNS=P000Lap;","","");
if(!$connect) die("Could not connect<br>");
else die('Connected');
?>
I’m running Win7 64 and Pervasive Driver Ver10 for Client and Engine Interface