|
mysqli_stmt::$errnomysqli_stmt_errnoReturns the error code for the most recent statement call DescriptionObject oriented style int$mysqli_stmt->errno;
Procedural style
int mysqli_stmt_errno
( mysqli_stmt
$stmt
)Returns the error code for the most recently invoked statement function that can succeed or fail. Client error message numbers are listed in the MySQL errmsg.h header file, server error message numbers are listed in mysqld_error.h. In the MySQL source distribution you can find a complete list of error messages and error numbers in the file Docs/mysqld_error.txt. Parameters
Return ValuesAn error code value. Zero means no error occurred. ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above examples will output: Error: 1146. See Also
|