note 32559 deleted from function.mysql-select-db by didou
| From: | didou@php.net | Date: | Sat, 31 May 2003 12:00:45 +0000 |
| Subject: | note 32559 deleted from function.mysql-select-db by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49485@lists.php.net to get a copy of this message | ||
Note Submitter: ctsmusic@planet.nl
----
Here's a good script for connecting to database
<?php
$db = mysql_connect("localhost","username","password") or die
("ERROR: " . mysql_error());
mysql_select_db("database", $db); or die ("ERROR: " . mysql_error());
?>