Considerations for connecting PHP to the Access Database: phpaccess

Source: Internet
Author: User

Considerations for connecting PHP to the Access Database: phpaccess

Note the following:

When installing the access database, you need to install the office version that matches with the local system. If the Windows 7 64-bit system is used, it is best to install office2010 if the Office is 64-bit...

This is because I have experienced the pain from 2003-2007-2010, especially when installing 2010. Because I have installed the 2003 version of office, I need to completely clear the 2003 version of office.

If you want to install 2010, you should try to install 2010. However, if you do not install, you can also choose o (*  ̄ ▽  ̄ *) o.

Step 1

After installing office 2010, I pass it directly. You can search Baidu. Pay attention to how many bits are installed with the local operating system !!

Step 2

After installing the office, first open your -- control panel -- Management Tools -- (Data Source) ODBC -- System DNS -- add -- access Database

Note:You can also set your account and password in ODBC. Click Advanced.

Step 3

The PHP code for connecting to access data is as follows:

I want to talk about the number of PHP connections in several ways: PDO driver, ado, And the ODBC connection method I am talking about today,

Summary

The above is all the considerations for connecting PHP to the Access database. I hope this article will be helpful for you to connect to the Access database using PHP. 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.