Scripting/Squirrel/Functions/mysql warning count: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
m (Do not sign your edits) |
No edit summary |
||
Line 14: | Line 14: | ||
print( mysql_warning_count( handler ) ); | print( mysql_warning_count( handler ) ); | ||
</pre> | </pre> | ||
== Related Functions == | |||
{{Scripting/Squirrel/Functions/Mysql}} | |||
[[Category:Scripting/Squirrel/Functions/Mysql_Functions]] |
Revision as of 18:24, 30 January 2017
Returns the last query number of warnings
Syntax
mysql_warning_count( MySQLConnection handler )
Arguments
- MySQLConnection handler - A valid MySQL link/connection
Return value
An integer showing the number of warning of the last query
Example
mysql_query(handler,"SELECT FROM shit"); print( mysql_warning_count( handler ) );