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的确被弃用了。不过还是可以用的。把错误级别修改一下就行了