$query = $this->db->insert('table', $data);
if($query > 0)
{
return "true";
} else
{
$errNo = $this->db->_error_number()
$errMess = $this->db->_error_message();
return "false -- ".$errNo .">>".$errMess;
}
if($query > 0)
{
return "true";
} else
{
$errNo = $this->db->_error_number()
$errMess = $this->db->_error_message();
return "false -- ".$errNo .">>".$errMess;
}
Comments
Post a Comment