NYCPHP Meetup

NYPHP.org

[nycphp-talk] question re DB_Error (PEAR)

Mitch Pirtle mitchy at spacemonkeylabs.com
Fri Mar 19 15:09:34 EST 2004


David Mintz wrote:

> There is no method that returns the native error code, to get it you have
> to do something like parse it out of the string returned by getUserInfo()
> 
> True or false?

False.

if ( DB::isError( $result ) ) {
	die ( $result->getDebugInfo() );
}




More information about the talk mailing list