Home > Backend Development > PHP Tutorial > 前一秒还好好的,突然提示这个。

前一秒还好好的,突然提示这个。

WBOY
Release: 2016-06-06 20:26:27
Original
1173 people have browsed it

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /Applications/XAMPP/xamppfiles/htdocs/phptest1/needlist.php

回复内容:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /Applications/XAMPP/xamppfiles/htdocs/phptest1/needlist.php

php的mysql扩展在php 5.5被标识为弃用(deprecated)
在php7中被删除

请用mysqli或者pdo替换

php的mysql的确被弃用了。不过还是可以用的。把错误级别修改一下就行了

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template