0% found this document useful (0 votes)
23 views1 page

Error

This document describes the Error method that returns the last recorded error from a database connection as an array or string containing the error number, error text, and connection that caused the error. For example, the Error method can be used to retrieve and display the last error after a database operation fails.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

Error

This document describes the Error method that returns the last recorded error from a database connection as an array or string containing the error number, error text, and connection that caused the error. For example, the Error method can be used to retrieve and display the last error after a database operation fails.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Error

Returns the last recorded error in the form of an array or string (depending upon the context) containing
the error number, error text and the ODBC connection that caused the error (if there is one).

Example:
die $db->Error(), qq(\n);
($ErrNum, $ErrText, $ErrConn) = $db->Error();

You might also like