|
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): No such file or directory
Filename: mysqli/mysqli_driver.php
Line Number: 135
Backtrace:
File: /phpstudy/www/chuangyizhongxin/application/controllers/C_admin.php
Line: 11
Function: __construct
File: /phpstudy/www/chuangyizhongxin/index.php
Line: 292
Function: require_once
发生了一个数据库错误
使用给出的设置无法连接数据库.
Filename: controllers/C_admin.php
Line Number: 11
===============以上是报错信息====================
/**登陆查询*/
public function checklogin($name,$pwd){
$query = $this->db->get('cy_admin');
return $query;
}
======================模型方法============
请问怎么样用?哪里错了 |
|