Notes for loading new changes to PhP5 PDO

Source: Internet
Author: User

The # above is gone, but it cannot be loaded. Take a closer look.
Extension = php_pdo.dll
So, OK.

By the way, do not copy the DLL files under ext to the Windows directory, and add the PHP path to the environment variables. This is better. Right?

The problem in Chinese is solved in this way.
Before querying
Mysql_query ("set names 'utf8 '");
After using PDOCopyCodeThe Code is as follows: $ DBH = new PDO ($ DSN, $ user, $ pass); // initialize a PDO object, that is, create a database connection object $ DBH
Echo "connection successful <br/> ";
// You can perform a search operation
$ DBH-> query ("set names utf8...

5. Remember: the character set must be unified, database, and website. Page

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.