<./>.dev./hood

public function customer_permanent($option){
    $table_name = "cs_customer";
    $modify_array = array (
        'cu_permanent'  => '0', 
        'cu_permanent_time' => now(),
        'cu_modifydate' => now()
    );
        $this->db->where_in('seq', $option['in']);
 
    //echo "query : " . $this->db->update($table_name, $modify_array);
       $result = $this->db->update($table_name, $modify_array);
    exit;
    //return $result;
}

 

예를들면 $sql =  "select myphone from myuserinfo where 1=1 and dy=1 ";

 

echo $sql ."<br>" 하면.. 저거 그대로는 보이는데..

 

답) $this->output->enable_profiler(true); or $this->db->last_query();

 

 

출처 -

https://www.codeigniter-kr.org/user_guide_2.1.0/database/active_record.html

 

Active Record : CodeIgniter User Guide

액티브 레코드(Active Record Class) CodeIgniter 는 수정된 형태의 액티브레코드 데이터베이스 패턴(Active Record Database Pattern)을 사용합니다. 이 패턴은 정보의 추출,삽입, 업데이트를 최소한의 코드로 수

www.codeigniter-kr.org

 

https://www.cikorea.net/bbs/view/qna?idx=13702

 

액티브 레코드(Active Record Class)를 이용하여 만든 쿼리 결과물을 보고 싶습니다.

안녕하세요.  질문이 많은 수석코치입니다.   액티브 레코드(Active Record Class)의 메뉴얼 페이지를 보면, 밑에 텍스트로

www.cikorea.net