02-16-2021, 09:31 AM
Hi, everyone
i have problem with return in insert data
the return value will always be true even if data fails to save
i appreciate any suggestions, thanks
i have problem with return in insert data
Code:
$query_ins = $this->db->table('product')->insert($data);
if(!$query_ins){
return false;
}else{
return true;
}
the return value will always be true even if data fails to save
i appreciate any suggestions, thanks