no database selected

From: Date: Tue, 23 Jan 2007 17:35:12 +0000
Subject: no database selected
Groups: php.general 
Request: Send a blank email to php-general+get-247632@lists.php.net to get a copy of this message
I am using this to connect remotely but I get a no database selected error. The table is contacts but there is not a parameter for database name according to the documentation. How do I delect my database when conencting this way? $link = mysql_connect('xxxx.org:3306', 'my_username', 'mypass'); echo 'Connected successfully'; $query = "SELECT * FROM contacts";

« previous php.general (#247632) next »