Scripting/Squirrel/Functions/mysql num fields: 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
(Created page with "== Syntax == <pre>mysql_num_fields( MySQLQuery query )</pre> == Arguments == * ''MySQLQuery'' '''query''' - A valid MySQL result == Return value == The field's as a table =...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
}
}
</pre>
</pre>
== Related Functions ==
{{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 );
	}

Related Functions