PHP mysqli_warning_count() function returns the number of warnings from the last query in the connection.
Syntax
Parameter | Description |
---|---|
connection : | Required parameter. The MySQL connection to be used |
Return Values : | Number of warnings or zero if there are no warnings. |