If you use @
@mysql_connect($dbhost,$dbuser,$dbpass)
or die ("Can not connect to server. Sorry.");
the error message will be displayed like you've defined;
Can not connect to server. Sorry.
If you remove the @
you'll see the error message exact, like:
Warning: mysql_connect(): Access denied for user: blah blah...
so it'lll be easier to understand your mistake.
Don't use @ sign till your code is finished. When you're done with the code, add the @ sign to display "let's less inform lamer" error message that you'll chose.