This documentation is for an older version. If you're using the most current version, select the documentation for that version with the version switch in the upper right corner of the online documentation, or by downloading a newer PDF or EPUB file. mysql_warning_count()

unsigned int mysql_warning_count(MYSQL *mysql)


Returns the number of errors, warnings, and notes generated during execution of the previous SQL statement.

Return Values

The warning count.