Answers for "codeigniter how to know update failed"

PHP
0

codeigniter how to know update failed

$this->db->trans_start();
$this->db->query('AN SQL QUERY...');
$this->db->update('table',$array);
$this->db->trans_complete();

if ($this->db->trans_status() === FALSE)
{
    // generate an error... or use the log_message() function to log your error
}
Posted by: Guest on September-08-2020

Browse Popular Code Answers by Language