本文整理匯總了PHP中msql_close函數的典型用法代碼示例。如果您正苦於以下問題:PHP msql_close函數的具體用法?PHP msql_close怎麽用?PHP msql_close使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了msql_close函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: disconnect
/**
* Disconnects from the database server
*
* @return bool TRUE on success, FALSE on failure
*/
function disconnect()
{
$ret = @msql_close($this->connection);
$this->connection = null;
return $ret;
}
示例2: disconnect_fbsql
function disconnect_fbsql($fbsql_link)
{
if ($fbsql_link) {
msql_close($fbsql_link);
$fbsql_link = false;
} else {
return false;
}
}
示例3: sql_logout
function sql_logout($id)
{
global $dbtype;
switch ($dbtype) {
case "MySQL":
$dbi = @mysql_close($id);
return $dbi;
break;
case "mSQL":
$dbi = @msql_close($id);
return $dbi;
break;
case "postgres":
case "postgres_local":
$dbi = @pg_close($id);
return $dbi;
break;
case "ODBC":
case "ODBC_Adabas":
$dbi = @odbc_close($id);
return $dbi;
break;
case "Interbase":
$dbi = @ibase_close($id);
return $dbi;
break;
case "Sybase":
$dbi = @sybase_close($id);
return $dbi;
break;
default:
break;
}
}
示例4: CloseDataBase
function CloseDataBase($dbi)
{
// I found msql_pconnect unstable so we go the slow route.
return msql_close($dbi['dbc']);
}