ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:errorno

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
v5:reference:connection:errorno [2026/02/23 01:38] – created mnewnhamv5:reference:connection:errorno [2026/02/23 02:56] (current) mnewnham
Line 5: Line 5:
 [[errormsg|errorMsg()]]\\ [[errormsg|errorMsg()]]\\
 == Syntax == == Syntax ==
-  string|false ADOConnection::errorNo()+  string ADOConnection::errorNo()
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The method ''errorNo'' returns an unfriendly error number about the last known error. Note that depending on th DBMS, the message may contain string identifiers.+The method ''errorNo'' returns an unfriendly error code about the last known error. Note that depending on the DBMS, the message may also contain string identifiers.
  
-If there is currently no error, the function returns **false**+If there is currently no error, the function returns an empty string
 ----------------------------- -----------------------------
 ==== Usage ==== ==== Usage ====
Line 29: Line 29:
  
 /* /*
- * Get the last error number+ * Get the last error code
  */  */
 $e = $db->errorNo(); $e = $db->errorNo();
v5/reference/connection/errorno.1771807119.txt.gz · Last modified: by mnewnham