Return to Snippet

Revision: 51552
at September 28, 2011 04:12 by Jotape


Initial Code
function getError(){
	$this->conn->RollbackTrans();
	$msg = $this->conn->ErrorMsg();
	$msg = str_replace(chr(10),'',$msg);
	$msg = str_replace('"','',$msg);
	$retono = json_encode(array(
		'sucess' => false,
		'msg'	 => utf8_encode($msq)
	));
	die($retono);
}

Initial URL

                                

Initial Description
Acompanhar erros retornado pelo adodb ou exception do bd.

Initial Title
Show Error ADODB

Initial Tags
php

Initial Language
PHP