The PHP version used by the local wampserver is 5.5.12, but the version of the company project is 5.4, and then it has been error-
How do I stop prompting this without changing the PHP version?
I want to switch 5.4 version of PHP, but always unsuccessful, wampserver start up, and now consider there is no way to hide this hint.
Reply content:
The PHP version used by the local wampserver is 5.5.12, but the version of the company project is 5.4, and then it has been error-
How do I stop prompting this without changing the PHP version?
I want to switch 5.4 version of PHP, but always unsuccessful, wampserver start up, and now consider there is no way to hide this hint.
This is a PHP minimum level error hint, which means that mysql_connect() 被废除
you can precede the code with an @
error suppressor, or the code addserror_reporting(0)
Solve:
@mysql_connect()
Look at this, I am also a copy of the link because do not PHP you try to
http://www.ttlsa.com/php/deprecated-mysql-connect/
PHP's version is too high, the mysql_connect () function will be removed in the future and replaced with mysqli.
Tell the people you're developing. The MySQL-related modules in the PHP project are all changed to mysqli.
As in this line:
$link = mysqli_connect('localhost', 'user', 'password', 'dbname');
Similar to:
1、mysql_connect 改为mysqli_connect2、mysql_query 改为mysqli_query3、mysql_close 改为 mysqli_close