note 34008 deleted from function.mysql-close by tomsommer
| From: | tomsommer@php.net | Date: | Sat, 28 Aug 2004 20:40:56 +0000 |
| Subject: | note 34008 deleted from function.mysql-close by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75506@lists.php.net to get a copy of this message | ||
Note Submitter: martijn dot 21 at hccnet dot nl
----
try doing this in youre database class:
function pyc_db_disconnect()
{
if( $this->conx )
{
//
// Commit any remaining transactions
//
if( $this->in_transaction )
{
mysql_query("COMMIT", $this->conx);
}
return mysql_close($this->conx);
}
else
{
return false;
}
}