[eluser]fMertins[/eluser]
Hi, I´m using the simple_query() function to execute a delete statement, like this one (in a model):
Code:
public function delete($id) {
$id = (int) $id;
$bdok = $this->db->simple_query("delete from cliente where idcliente = {$id}");
return $bdok;
}
So, if the statement fails, returnt FALSE. But how may I get the error message from database? For example, a foreign key violation message...
Thanks!
Fernando