note 7876 added to mysql_close
| From: | martin at hkhotmail dot com | Date: | Fri, 18 Aug 2000 02:38:37 +0000 |
| Subject: | note 7876 added to mysql_close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2257@lists.php.net to get a copy of this message | ||
Some comment in mysql_connect and mysql_close: <br>
1. As the page said, mysql_connect will return pre. linker if the arg. is the same,<br> so if
U try use a function to allocate a linker with same name, password and etc,<br> U maybe
careful that this will return same linker: <br>
$dbh=DBOpen();<br>$dbh1=DBOpen(); /* $db==$db1 */<br>
2 . As above said, if use mysql_cloe to close $dbh, $dbh1 also closed, so<br>
$dbh=DBOpen();<br>
$dbh1=DBOpen();<br>
...
mysql_query(..., $dbh1);<br>
...
DBClose($dbh1);<br>
mysql_query(..., $dbh);<br> /* this will prompt warning and no result will return for $dbh
*/<br>
Sorry for bad english and correct me if i wrong
http://www.php.net/manual/function.mysql-close.php