Scripting/Squirrel/Functions/mysql num fields

From Vice City Multiplayer
Revision as of 18:40, 19 July 2016 by MatheuS (talk | contribs) (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 =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
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 );
	}