note 34008 added to function.mysql-close
| From: | martijn dot 21 at hccnet dot nl | Date: | Sun, 13 Jul 2003 17:32:07 +0000 |
| Subject: | note 34008 added to function.mysql-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52030@lists.php.net to get a copy of this message | ||
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;
}
}
----
Manual Page -- http://www.php.net/manual/en/function.mysql-close.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34008
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34008&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34008&report=yes