Modules/MySQL/MysqlDestroy

From Multi Theft Auto: Wiki
Revision as of 00:03, 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 closes the MySQL connection that is currently opened, if there is one.

This function is provided by the ml_mysql module.

Syntax

bool mysqlClose ()

Required Arguments

None

Optional Arguments

None

Example

function onMySQLOpen ( result )
  if ( result )
    -- do something useful.
    mysqlClose ();
  else
    -- panic.
  end
end
<...>
mysqlOpen ( onMySQLOpen, "localhost", "user123", "mypassword", "testdatabase", 3306 );