Scripting/Squirrel/Functions/mysql num fields
This wiki is using an old backup from 2020
Some information may be old/missing
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 ); }