qeephp学习

controller中调用find()操作数据库时报错:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\xampp\htdocs\qeemaster_jingly\library\db\adapter\mysql.php on line 68

解决方案:E:\xampp\htdocs\qeemaster_jingly\library\db\adapter\mysql.php 中

$this->_conn =mysql_connect($host, $this->_dsn[‘login‘], $this->_dsn[‘password‘], $force_new);

改为$this->_conn =@mysql_connect($host, $this->_dsn[‘login‘], $this->_dsn[‘password‘], $force_new);

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。