Modules/MySQL/MysqlQuery

From Multi Theft Auto: Wiki
Revision as of 00:06, 12 April 2006 by IJs (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 ( [function callback_function, string query] )

Required Arguments

  • callback_function : The function that is called if the operation is done (please see below)
  • query : The MySQL query that is sent

Callback Arguments

Your callback function has to accept the following arguments:

N/A yet

Optional Arguments

None

Example

N/A yet