unsigned int mysql_stmt_errno(MYSQL_STMT
For the statement specified by
mysql_stmt_errno() returns the
error code for the most recently invoked statement API function
that can succeed or fail. A return value of zero means that no
error occurred. Client error message numbers are listed in the
errmsg.h header file. Server error
message numbers are listed in
mysqld_error.h. Errors also are listed at
Appendix B, Errors, Error Codes, and Common Problems.
This function was added in MySQL 4.1.0.
An error code value. Zero if no error occurred.