note 27251 deleted from function.mysql-select-db by didou
| From: | didou@php.net | Date: | Sat, 16 Aug 2003 09:17:50 +0000 |
| Subject: | note 27251 deleted from function.mysql-select-db by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54296@lists.php.net to get a copy of this message | ||
Note Submitter: rhcubevn@netdoor.com
----
<?php
$connection = mysql_connect($host, $user, $pass);
$db = mysql_select_db($mydatabase, $connection);
?>
The second paremeter in mysql_select_db is if you defined more than one mysql_connect(). You should
*always* define it, even if you only have one connection, as it is good practice, and will prevent
confusion later if you want to add another connection.
P.S. The first part of my e-mail (before @) is rot_13 encoded!
Armond