Welcome Guest, Not a member yet? Register   Sign In
Recover last error on database
#1

Hi All,

please, I am trying recover the error message from a trigger in a database that is returned, but
must be honest, I don't know how I do!.

I have next code:

$result=$this->db->insert('vendedor',$datos);
if ($result==true){
return true;
}
else{
echo "Se produjo un error";
}

But I need the message from database for show it to the client.
I appreciate any help.
Best Regards.
Reply


Messages In This Thread
Recover last error on database - by newphpprogrammer - 02-10-2015, 03:55 PM
RE: Recover last error on database - by CroNiX - 02-10-2015, 04:11 PM
RE: Recover last error on database - by CroNiX - 02-10-2015, 04:16 PM
RE: Recover last error on database - by Narf - 02-11-2015, 01:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB