简体   繁体   中英

How can I build a query with query builder in CodeIgniter with mssql

My Model function

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

Error Response : Fatal error: Call to undefined method CI_DB_sqlsrv_driver::select()

Using sqlsrv driver with IIS server and CI version 3.1

I tried with configuration change in database.php

$query_builder = TRUE;

and tried with clear cache and try.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM