note 34462 deleted from function.mysql-select-db by didou
| From: | didou@php.net | Date: | Mon, 28 Jul 2003 13:27:04 +0000 |
| Subject: | note 34462 deleted from function.mysql-select-db by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52837@lists.php.net to get a copy of this message | ||
Note Submitter: wolexca@netscape.net
----
/* You can make it more colorfull to verify that the database is opened by ...*/
<? php
$connectionx = @mysql_connect(optionnal_parameters)
or die("Could not connect: " .mysql_error());
print ("Connected Successfully!");
$dbx = @mysql_select_db(mydbx, $connectionx)
or die("Database not found:" .mysql_error());
print(" Using Database mydbx");
?>