can you connect your mysql database with phpmyadmin ,mysqladmin or any other interfaces ?
if you can get connected with any of them then check your mysql_connect() and mysql_select_db() statements. Be sure that your password ,location ,username statements are ok and you're trying to connect an existing database...
else?
I duno 🙁
if any of those wouldn't work plz. reply with detailed error msg...