multiple where condition codeigniter

前端 未结 7 1048
感情败类
感情败类 2021-02-01 15:16

How can I convert this query to active record?

\"UPDATE table_user 
 SET email = \'$email\', last_ip = \'$last_ip\' 
 where username = \'$username\' and status =         


        
7条回答
  •  梦如初夏
    2021-02-01 15:57

    you can use both use array like :

    $array = array('tlb_account.crid' =>$value , 'tlb_request.sign'=> 'FALSE' );
    

    and direct assign like:

    $this->db->where('tlb_account.crid' =>$value , 'tlb_request.sign'=> 'FALSE');
    

    I wish help you.

提交回复
热议问题