mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Added wrapper function for mysql_close
This commit is contained in:
parent
b54cd674e6
commit
6698601d19
@ -363,6 +363,14 @@ function connect()
|
||||
return $link;
|
||||
}
|
||||
|
||||
function close_connection($link)
|
||||
{
|
||||
global $use_persistent_connection;
|
||||
if (! $use_persistent_connection) {
|
||||
mysql_close($link);
|
||||
}
|
||||
}
|
||||
|
||||
function perform_query($query, $link)
|
||||
{
|
||||
mysql_query($query, $link) or die(' Query failed: ' . mysql_error($link));
|
||||
|
Loading…
Reference in New Issue
Block a user