add disconnect function

This commit is contained in:
Miles Lott 2004-03-02 02:32:39 +00:00
parent c2efa957b8
commit e56c40e8c4

View File

@ -70,6 +70,20 @@
}
}
function disconnect()
{
if($this->Link_ID <> 0)
{
@mssql_close($this->Link_ID);
$this->Link_ID = 0;
return 1;
}
else
{
return 0;
}
}
function db_addslashes($str)
{
if (!IsSet($str) || $str == '')