Wiki
Clone wikiEFLC-MP LUA / mysql_query
Description
Perfoms a query
Parameters
Int databaseId, String query, Bool returnResults
String query: the query
Bool returnResults: Whether the API should search the query for results. Use true only for SELECT.
Return values
table result
If returnResults is TRUE then this function returns a table containing the query results. In case the query caused a MySQL error then the result will a false bool.
Example
Updated