<?php require("http://php.wilson.gs"); // 回首頁 echo "http://php.wilson.gs/bible/function.php : 函式:mysql_close()"; |
函式:mysql_close() |
mysql_close關閉 MySQL 伺服器連線。 語法: int mysql_close(int [link_identifier]); 傳回值: 整數 函式種類: 資料庫功能
本函式關閉與 MySQL 資料庫伺服器的連線。若無指定參數 link_identifier 則會關閉最後的一筆連線。用 mysql_pconnect() 連線則無法使用本函式關閉。實際上本函式不是一定需要的,當 PHP 整頁程式結束後,將會自動關閉與資料庫的非永久性 (non-persistent) 連線。成功傳回 true、失敗傳回 false 值。
mysql_connect() mysql_pconnect()
|
![]() mail("wilson@biglobe.net.tw", "Feedback", $message); ?> |