note 32559 added to function.mysql-select-db

From: Date: Sat, 31 May 2003 06:33:17 +0000
Subject: note 32559 added to function.mysql-select-db
Groups: php.notes 
Request: Send a blank email to php-notes+get-49474@lists.php.net to get a copy of this message
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()); ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-select-db.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32559 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32559&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32559&report=yes

« previous php.notes (#49474) next »