'How to connect to MS Access database in PHP7?
I'm using WampServer and PHP7. I'm trying to connect to a MS Access database that I created and named "db_operation.accdb". I moved that database to "C:\wamp\www\Operation-Monitor\db". I can't seem to figure out how to connect to it. Although, I can perfectly see it when I browse "127.0.0.1\Operation-Monitor\db". However, I'm clueless about connecting it.
$mysql_user = "";
$mysql_password = "";
$mysql_database = "127.0.0.1\\Operation-Monitor\\db\\db_operation.accdb";
$db = odbc_connect("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=$mysql_database;Persist Security Info=False;", $mysql_user, $mysql_password) or die ("Couldn't find any databases.");
I'm getting the following error when I execute my code:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

