how to catch db error |
not working
in controller : $check=false; while (!$check) { $no = $this->m_home->getLastId($grp); $data = array( 'no' => $no, 'usergroup' => $group, 'name' => $n, 'mobile' => $m ); $check= $this->m_home->input_data($data,'users'); } in model function input_data($data,$table) { $this->db->db_debug = false; if($this->db->insert($table,$data)) { return true; } else { return false; } } |
Messages In This Thread |
how to catch db error - by amansusanto - 10-11-2019, 07:33 PM
RE: how to catch db error - by InsiteFX - 10-12-2019, 03:58 AM
RE: how to catch db error - by tp45 - 10-12-2019, 07:44 PM
RE: how to catch db error - by amansusanto - 10-13-2019, 07:26 PM
RE: how to catch db error - by InsiteFX - 10-14-2019, 04:21 AM
RE: how to catch db error - by amansusanto - 10-14-2019, 04:42 AM
RE: how to catch db error - by Chroma - 10-14-2019, 08:26 AM
RE: how to catch db error - by amansusanto - 10-15-2019, 08:28 PM
RE: how to catch db error - by InsiteFX - 10-16-2019, 04:26 AM
|