note 78456 deleted from ref.mysql by felipe

From: Date: Sun, 16 Dec 2007 12:32:03 +0000
Subject: note 78456 deleted from ref.mysql by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133699@lists.php.net to get a copy of this message
Note Submitter: Amanda Reason: 1 ---- // Connecting, selecting database $link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') or die('Could not connect: ' . mysql_error()); echo 'Connected successfully'; I'm confused about this part of the code. If you don't connect to the MySQL server, how will it know what error code to report back? Do you not need an active connection?

« previous php.notes (#133699) next »