Trouble connecting

Im trying to connect to my database, but cant, so I put this echo in there

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($dbname) or die ('Error connecting to db');
echo $conn;

And I get this, any idea what it means?
Resource id #4

what value for $conn are you expecting?

have a look at what [fphp]mysql_connect[/fphp] returns.

also have a look at how mysql_connect_db works

Resource id # would actually imply the connection has worked and that is an internal ID for the connection.