note 34462 added to function.mysql-select-db

From: Date: Mon, 28 Jul 2003 13:08:12 +0000
Subject: note 34462 added to function.mysql-select-db
Groups: php.notes 
Request: Send a blank email to php-notes+get-52835@lists.php.net to get a copy of this message
/* 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"); ?> ---- 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+34462 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34462&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34462&report=yes

« previous php.notes (#52835) next »