如何使用mssql在CodeIgniter中使用查询构建器构建查询

时间:2017-01-23 09:21:04

标签: php sql-server codeigniter

我的模特功能

public function getUser($username,$password){
        $this->db->select('*');
        $this->db->where('username',$username);
        $this->db->where('password',$password);
        $this->db->from('users_master');
        $query = $this->db->get();
        $result = $query->result_array();
        return $result;
    }

错误响应:致命错误:调用未定义的方法CI_DB_sqlsrv_driver :: select()

将sqlsrv驱动程序与IIS服务器和CI版本3.1一起使用

1 个答案:

答案 0 :(得分:0)

我尝试在database.php中配置更改

@media screen and(max-width:500px){
tr[class="main_nav"] {
   display: table-footer-group;
   position:absolute;
   top:1000px;
   bottom:0px;   
}}

尝试使用清除缓存并尝试。

相关问题