View Single Post

  #1 (permalink)  
Old 01-23-2007
Ross
 
Posts: n/a
Default no database selected

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";
Reply With Quote