Thanks to visit codestin.com Credit goes to dev.mysql.com
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.