Re: mysql_select_db

From: Date: Tue, 21 Oct 2008 21:42:48 +0000
Subject: Re: mysql_select_db
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-45550@lists.php.net to get a copy of this message
Stan wrote:
So ... if I enter "mysql -h mysqlServer -u stan -p" and then enter the password, I get connected without a problem ... I get the mysql client prompt.
You haven't selected a db. Inside mysql: use database_name;
And the mysql_connect() statement in my code does not "die". But the mysql_select_db() statement in my code does "die".
What error? echo mysql_error(); -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#45550) next »