The first thing to note:
When you install an Access database, you need to install an Office version that matches the native system, and Win7 a 64-bit system, then office is also the 64-bit best fitted office2010 ...
Because I was experiencing the pain from 2003-2007-2010, especially when I was loading 2010, because the 2003 version of Office was loaded, the Clean 2003 version of Office needed to be completely cleaned up.
All advise you can pack 2010 as far as possible 2010 of the bar, but if you do not pretend, also casually you O (* ̄▽ ̄*) O.
First step
With Office 2010, I passed the pass directly. Fellow schoolmates, everybody Baidu searches below can. note with the local operating system is how many bits of a bit of the Oh!!
Second Step
After installing Office, first open your --control Panel--management tools--(data source) odbc--System DNS--Add--access database
Note that you can also set your account and password in ODBC. Click Advanced to set it up.
Third Step
PHP connects access data with the following code:
I want to say is PHP connection data There are several ways PDO drive, ADO, and I speak of ODBC connection way today,
Summarize
This is the full content of the PHP connection to the Access database, I hope the content of this article for everyone to use PHP to connect to the Access database can help. If you have any questions, please leave a message for discussion.