unsigned int mysql_warning_count(MYSQL *mysql)
Returns the number of errors, warnings, and notes generated during execution of the previous SQL statement.
The warning count.
None.