mysqli->warning_count -- Returns the number of warnings from the last query for the given link
mysqli_warning_count()
returns the number of warnings
from the last query in the connection represented by the
link
parameter.
Note:
For retrieving warning messages you can use the SQL command
SHOW WARNINGS [limit row_count]
.