php7 and mysql extension
This question already has an answer here:
Call to undefined function mysql_connect
The mysql_
library was deprecated years ago. It has been removed entirely in PHP 7.
Use a modern replacement such as PDO or mysqli_
.
你需要使用mysqli_*
函数,而不是mysql_*
。
上一篇: 如何知道一个字符串以jQuery中的特定字符串开始/结束?
下一篇: php7和mysql扩展