Scripting/Squirrel/Functions/mysql num fields: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
== Related Functions == | == Related Functions == | ||
{{Scripting/Squirrel/Functions/ | {{Scripting/Squirrel/Functions/MySQL Functions}} | ||
[[Category:Scripting/Squirrel/Functions/Mysql_Functions]] | [[Category:Scripting/Squirrel/Functions/Mysql_Functions]] |
Latest revision as of 18:28, 30 January 2017
Syntax
mysql_num_fields( MySQLQuery query )
Arguments
- MySQLQuery query - A valid MySQL result
Return value
The field's as a table
Example
else if( cmd == "mysql" ) { local q1 = mysql_query( sqliteDB, "SELECT * FROM Accounts" ); local result = mysql_num_fields(q1); MessagePlayer( "table Accounts has -> " + result + " Fields!", player ); }