Talk about PHP connection to access database considerations _php Tips

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.