I'm just trying to test this...
Code:
<?
$conn = new COM("ADODB.Connection") or die("Cannot start ADO");
// Microsoft Access connection string.
$conn->Open("Provider=Microsoft,.Jet.OLEDB.4.0; Data Source=F:\\Inetpub\\wwwroot\\EmployeeWellnessProgram\\Copy of HR Employee Wellness Program.mdb");
// SQL statement to build recordset.
$users = $conn->Execute("SELECT * FROM [analyzer query]");
// Display all the values in the records set
while (!$users->EOF) {
$fv = $users->Fields("[Employee ID]");
echo "Value: ".$fv->value."<br>\n";
$users->MoveNext();
}
$users->Close();
?>
and i get these errors...
Warning: (null)(): Invoke() failed: Exception occurred. Source: ADODB.Connection Description: Provider cannot be found. It may not be properly installed. in F:\InetPub\wwwroot\EmployeeWellnessProgram\TestDis play.php on line 5
Warning: (null)(): Invoke() failed: Exception occurred. Source: ADODB.Connection Description: Operation is not allowed when the object is closed. in F:\InetPub\wwwroot\EmployeeWellnessProgram\TestDis play.php on line 8
Fatal error: Call to a member function on a non-object in F:\InetPub\wwwroot\EmployeeWellnessProgram\TestDis play.php on line 13