⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_warning_count()

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.

EXAMPLE
RESULT
The result will be displayed here...

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.