Modules/MTA-MySQL/mysql close: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ Closes an established connection to a MySQL server. ==Syntax== <syntaxhighlight lang="lua"> mysql_close ( handler ) </syntaxhighlight> ===Required arguments=== * '''handler:''' A valid MySQL link ===Ret...) |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
mysql_close ( handler ) | mysql_close ( MySQLConnection handler ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required arguments=== | ===Required arguments=== |
Revision as of 14:42, 13 January 2008
Closes an established connection to a MySQL server.
Syntax
mysql_close ( MySQLConnection handler )
Required arguments
- handler: A valid MySQL link
Returns
This function doesn't return any value
Example
Example 1: This example makes a MySQL connection and then closes it
handler = mysql_connect("localhost", "username", "password", "mta_users") -- Establish the connection if ( not handler ) then -- The connection failed outputDebugString("Unable to connect to the MySQL server") else mysql_close(handler) -- Close the connection end
See also
- mysql_connect
- mysql_close
- mysql_errno
- mysql_error
- mysql_ping
- mysql_select_db
- mysql_escape_string
- mysql_affected_rows
- mysql_change_user
- mysql_get_character_set_info
- mysql_get_client_info
- mysql_get_client_version
- mysql_get_host_info
- mysql_get_proto_info
- mysql_get_server_info
- mysql_get_server_version
- mysql_hex_string
- mysql_info
- mysql_insert_id
- mysql_query
- mysql_unbuffered_query
- mysql_set_character_set
- mysql_stat
- mysql_warning_count