Skip to content

PHP code snippet – codeigniter How to know update failed?

$this->db->query('AN SQL QUERY...');

if ($this->db->trans_status() === FALSE)
    // generate an error... or use the log_message() function to log your error
See also  Python code snippet - How to update optionmenu contents with tkinter?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.