note 7876 deleted from mysql_close by danbeck
| From: | danbeck@php.net | Date: | Thu, 07 Sep 2000 15:17:42 +0000 |
| Subject: | note 7876 deleted from mysql_close by danbeck | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4349@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