A newcomer, about PHP config MySQL

Source: Internet
Author: User
Yesterday to toss a day, or did not fix, quickly collapsed ... Ask the great God to bring me ...


Reply to discussion (solution)

Find a solution. Obviously very simple problem, Baidu a lot of people used to solve, I do not do

The MySQL extension is deprecated and will be removed in the future. Replace with Mysqli or PDO.

Be sure to use MySQL to block deprecated hints
Modify the php.ini file

; error_reporting = E_all modified to:

error_reporting = E_all &~e_notice &~e_deprecated

Deprecated Out of date

Error_reporting (e_all ^ e_notice ^ e_deprecated); $link = mysql_connect (' localhost ', ' root ', ' empireofanngles ');


The MySQL extension is deprecated and will be removed in the future. Replace with Mysqli or PDO.

Be sure to use MySQL to block deprecated hints
Modify the php.ini file

; error_reporting = E_all modified to:

error_reporting = E_all &~e_notice &~e_deprecated




But I also opened mysqli and Pho, ah, why still wrong, if you want to use mysqli and pho is not to remove the front semicolon?

Extension_dir = "D:/server/php/ext" The path of this place must be correct to support MySQL

Extension_dir = "D:/server/php/ext" The path to this place (this is the php.ini configuration file) must be correct to support MySQL

Extension_dir = "D:/server/php/ext" The path of this place must be correct to support MySQL



Can make sure it's right.

But I opened mysqli and pho, too.


The error is the MySQL extension, what is the relationship with Mysqli and PDO?

Do you want to use mysqli and pho to remove the preceding semicolon?


Is

Quote:
The error is the MySQL extension, what is the relationship with Mysqli and PDO?



Then how to detect mysqli and PHP connection, I put the code of MySQL replaced Mysqli,php.ini mysqli is also open, or error

The changed code and error messages are posted.


Is




Come on! Thank you, and finally know where the mistake is.
  • Related Article

    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.