首页 > Web开发 > 详细

qeephp学习

时间:2014-12-30 13:16:56      阅读:218      评论:0      收藏:0      [点我收藏+]

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);

qeephp学习

原文:http://www.cnblogs.com/jly553/p/4193357.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!