Modules/MySQL/MysqlDestroy
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
nil mysqlClose ( mysql object )
Required Arguments
Optional Arguments
None
Example
function onMySQLOpen ( my_mysql, result ) if ( result ) -- do something useful. mysqlClose ( my_mysql ); else -- panic. end end <...> mysqlOpen ( "onMySQLOpen", "localhost", "user123", "mypassword", "testdatabase", 3306 );