$this->db->trans_start(TRUE);
$this->db->insert($this->table_notice, $data);
$this->db->trans_complete();
if ($this->db->trans_status() == FALSE)
{
echo 'Transactions연습';
exit;
}
이렇게 작성했는데... 현재 코드가 테스트 모드니 연습용메시지가 나와야 하는거 아닌가요?상황상 true일 것 같은데요. ^^
[=]이 세개로 되어있네요.
일단 한번 적용해 보심이.
http://codeigniter-kr.org/user_guide/database/transactions.html
if ($this->db->trans_status() === FALSE)
{
// generate an error... or use the log_message() function to log your error
}
Note:수동 트랜잭션시에는 $this->db->trans_begin() 함수를 사용해야 합니다. $this->db->trans_start()함수를 사용하지 않도록 주의하세요.
이부분이 아닐런지요.. 그리고 FALSE로 떨어지는 상황이 맞긴 한지용?