Hi there MapleStory,
As Brotherhood of lan stated:-
$conn = mysql_connect($host,$user,$pass)or die(mysql_error());
$db = mysql_select_db($database, $conn) or die(mysql_error());
Attach an error handler to the end of the connect query as there seems to be an issue with what the function is returning. Get a connection, then select the DB, error handlers at this point are handy, but once the connection is established, and you are going public, remove the or die(... part :) Less info on display for hackers then..
Also:-
// Database Username - Usually "root"
$user = "root";
// Database Password - Usually "root". If you don`t have a password, or are not sure, leave it blank.
$pass = "";
Bad idea to had this as standard connection info, root access should NEVER be used when going public, because if you do and you dont protect your code queries, you can potentially let hackers inject code that will and can delete your databases. Just thought I would let you know.
Oh, and one final point: Make sure that the data you are after/requesting is actually spelt as it is in the DB, table names, and database names, field names etc, as this catches many people out (though they will never admit it :))
As you are using wamp, use the phpmyadmin utility and set yourself a new user account up, using the privelidge tab. Once this is set up you can use this new username/password combo for all your testing/development work, but I cannot stress enough how much of a good habit this will be in future for you if you get into the habit now. :)
Cheers,
MRb