If table column does not exist mysql shows error .How to fix it using try catch or error handling method
Thanks
If table column does not exist mysql shows error .How to fix it using try catch or error handling method
Thanks
you can handle the mysql
error
in this way
if ( ! $this->db->query('SELECT `name`,`age` FROM `example`'))
{
$error = $this->db->error(); // Has keys 'code' and 'message'
}