前一秒还好好的,突然提示这个。
程序员文章站
2024-04-02 19:18:46
...
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的确被弃用了。不过还是可以用的。把错误级别修改一下就行了