php7 cannot use mysql

angryTom
Release: 2023-02-28 08:22:01
Original
4935 people have browsed it

php7 cannot use mysql

php7 cannot use mysql

After many people upgrade from php5 to php7, the program cannot run normally, especially The mysql database cannot be connected. Let’s take a look at the solution.

After upgrading php7, I found that some projects that have been completed and placed locally cannot be used normally. This is because the functions of the mysql_ class have been abandoned by php7. In fact, As early as php5, the official has made it clear that this type of function will be abandoned. The following is a comparison of query data after php5 and php7 associate the database:

php5: 
Copy after login
php7: 
Copy after login

For more PHP related knowledge, please visitPHP Chinese website!

The above is the detailed content of php7 cannot use mysql. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!