Show Error ADODB


/ Published in: PHP
Save to your folder(s)

Acompanhar erros retornado pelo adodb ou exception do bd.


Copy this code and paste it in your HTML
  1. function getError(){
  2. $this->conn->RollbackTrans();
  3. $msg = $this->conn->ErrorMsg();
  4. $msg = str_replace(chr(10),'',$msg);
  5. $msg = str_replace('"','',$msg);
  6. $retono = json_encode(array(
  7. 'sucess' => false,
  8. 'msg' => utf8_encode($msq)
  9. ));
  10. die($retono);
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.