The mysqli_warning_count() function returns the number of warnings that occurred during the
execution of the last SQL query. Warnings differ from errors as they do not stop execution but merely warn about
irregularities.
Practical use: Warnings often appear if you try to insert text that is too long into a field with a limited number of characters, or if you insert an incorrect data type (e.g., text instead of a number). MySQL will attempt to adjust the data but will issue a warning about it.
SHOW WARNINGS.