Hi.
I am trying to connect to a Microsoft Access DB using the following PHP connection string: -
<?php
$db = 'db/ljonny18.mdb';
$conn = new COM('ADODB.Connection');
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$db");
$sql = "select * from guestbook";
$rs = $conn->Execute($sql);
?>
It works fine on my local machine, but when I put it online i get the folloeing error: -
Fatal error: Cannot instantiate non-existent class: com in /home/ljonny18/public_html/ljonny18/guestbook.php on line 3
NOTE - line 3 is: -
"$conn = new COM('ADODB.Connection');"
Could someone please help,
Thanks,
Jon.