Basic use instance of PDO in PHP

Source: Internet
Author: User
Welcome to the Linux community forum and interact with 2 million technical staff in PHP development. mysql or mysqli is currently widely used for database connection. PDO support is already available in PHP5. It is said that in the next version of PHP6, PDO will be used as the default database link tool. Whether it is true or not, PDO will be used as another database

Welcome to the Linux community forum and interact with 2 million technical staff> in PHP development, mysql or mysqli is currently widely used for database connection. PDO support is already available in PHP5. It is said that in the next version of PHP6, PDO will be used as the default database link tool. Whether it is true or not, PDO will be used as another database

Welcome to the Linux community forum and interact with 2 million technicians>

In PHP development, mysql or mysqli are currently widely used database connection methods. PDO support is already available in PHP5. It is said that in the next version of PHP6, PDO will be used as the default database link tool, whether it is true or not, as another connection method for databases, PDO may be widely used in the near future. Here, UnceToo will share with you about the current knowledge and use of PDO as an instance, part of the article code comes from the network.

Before using PDO, you must first set the PHP. ini file so that PHP supports PDO, because PHP5 is not supported by default. Find the PHP. ini file in the PHP installation directory, open and search extension = php_pdo.dll and extension = php_pdo_mysql.dll, remove the semicolon (;), and restart apache.

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.