Scripting/Squirrel/Functions/mysql errno: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
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 12: Line 12:
== Example ==
== Example ==
<pre>print( mysql_errno( handler ) )</pre>
<pre>print( mysql_errno( handler ) )</pre>
== Related Functions ==
{{Scripting/Squirrel/Functions/Mysql}}
[[Category:Scripting/Squirrel/Functions/Mysql_Functions]]

Revision as of 18:23, 30 January 2017

Returns the last error number of a MySQL connection.

Syntax

mysql_errno( MySQLConnection handler )

Arguments

  • MySQLConnection handler - A valid MySQL link/handler

Return value

The last error number, zero if nothing failed.

Example

print( mysql_errno( handler ) )

Related Functions

Template:Scripting/Squirrel/Functions/Mysql