no database selected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"; 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux