Use error()
method:
$this->db->error();
For CodeIgniter 2, you can use the following functions which are now deprecated:
$this->db->_error_message(); (mysql_error equivalent)
$this->db->_error_number(); (mysql_errno equivalent)
More Related Contents:
- Count array by parse value of array
- How to make search query like Youtube? [closed]
- how to use json_encode for my output?
- How can i avoid index.php from URL in codelgniter [closed]
- CodeIgniter – foreach loop
- How to use query string in Codeigniter?
- How to insert multiple rows from array using CodeIgniter framework?
- How should I choose an authentication library for CodeIgniter? [closed]
- base_url() function not working in codeigniter
- How to load a controller from another controller in codeigniter?
- Codeigniter displays a blank page instead of error messages
- CodeIgniter: Create new helper?
- CodeIgniter htaccess and URL rewrite issues
- Day difference without weekends
- Uploading in Codeigniter – The filetype you are attempting to upload is not allowed
- How to call codeigniter controller function from view
- Grouping WHERE clauses in Codeigniter
- How to integrate WordPress template with CodeIgniter
- Namespace in PHP CodeIgniter Framework
- Codeigniter Sessions not working after migration
- Codeigniter echoing [::1] instead of localhost
- Advantages / Disadvantages of pconnect option in CodeIgniter
- Remove index.php in codeigniter 2.1.0
- To Use a PHP Framework or Not? [closed]
- Codeigniter assets folder best practice
- Role Based Access Control
- How can I redirect a 404 Error in a custom 404 page using Codeigniter?
- Escaping SQL queries in Codeigniter
- enabling cors in codeigniter ( restserver by @chriskacerguis )
- Sending XML data using HTTP POST with PHP