Fix for persistent connections and disconnect()

This commit is contained in:
skeeter 2001-03-31 01:10:15 +00:00
parent 36becd4638
commit 486e412862

View File

@ -91,11 +91,20 @@ class db {
return $this->Link_ID;
}
// This only affects systems not using persistant connections
function disconnect()
{
return @mysql_close($this->Link_ID);
}
// This only affects systems not using persistant connections
function disconnect()
{
if($this->Link_ID <> 0)
{
@mysql_close($this->Link_ID);
$this->Link_ID = 0;
return 1;
}
else
{
return 0;
}
}
function limit($start)
{