RE: [PHP-DB] Help! Can't "select" db after uploading file from mu lti-part form

From: Date: Mon, 19 Jun 2000 16:16:27 +0000
Subject: RE: [PHP-DB] Help! Can't "select" db after uploading file from mu lti-part form
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-490@lists.php.net to get a copy of this message
> $connect = mysql_connect("localhost", "myusername", > "mypassword") || > die ("cannot connect"); > $db = mysql_select_db("mydatabasename", $connect) || die("cannot > select"); > $sql = "Select * from address_book"; > $result = mysql_query($sql, $db); This is bogus. The second argument to mysql_query() is a link identifier. In your case that would be $connect. -Rasmus

« previous php.db (#490) next »