Scripting/Squirrel/Functions/mysql num fields

From Vice City Multiplayer
Revision as of 18:28, 30 January 2017 by Thijn (talk | contribs)
(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 );
	}

Related Functions