mysql_connect returning error message

From: Date: Wed, 19 Jul 2000 16:38:20 +0000
Subject: mysql_connect returning error message
Groups: php.db 
Request: Send a blank email to php-db+get-1290@lists.php.net to get a copy of this message
Hello, For some strange reason, when I try to do: $dblink = mysql_connect("<hostname>", "<user>", "<password>"); if I echo $dblink it returns the message "Resource id #1" because of this, when I do: mysql_select_db("<databasename>", $dblink); and create the query and return the result, etc. I get the following message: Warning: Supplied argument is not a valid MySQL-Link resource in (Then/it/lists/the/filename and line #) Presently, I'm using: Web Server = PWS/Win98 PHP4 MYSQL 3.22 Does anyone know why mysql_connect() is returning a message instead of a value and how to fix it? TIA

« previous php.db (#1290) next »