Modules/MySQL/MysqlQuery: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


==Syntax==
==Syntax==
  bool mysqlQuery ( [string callback_function, string query] )
  bool mysqlQuery ( [string callback_function, string query, string result_table] )


===Required Arguments===
===Required Arguments===
*'''callback_function''' : The function that is called if the operation is done (please see below)
*'''callback_function''' : The function that is called if the operation is done (please see below)
*'''query''' : The MySQL query that is sent
*'''query''' : The MySQL query that is sent
*'''result_table''' : The name of the global table that is created to save the results


===Callback Arguments===
===Callback Arguments===

Revision as of 20:29, 21 April 2006

Description

This functions queries the MySQL server through the MySQL connection that has been opened by mysqlOpen. The result of the query is then passed to the script by calling callback_function.

This function is provided by the ml_mysql module.

Syntax

bool mysqlQuery ( [string callback_function, string query, string result_table] )

Required Arguments

  • callback_function : The function that is called if the operation is done (please see below)
  • query : The MySQL query that is sent
  • result_table : The name of the global table that is created to save the results

Callback Arguments

Your callback function has to accept the following arguments:

N/A yet

Optional Arguments

None

Example

N/A yet