<?php $conn = mysql_connect("localhost","username","password");
mysql_select_db("databasename",$conn); ?>[\code]
this is the simplest way to connect if everyone is connecting with the same username. If this doesn't work look at the password that your are using. Try using the password that lets you access the database instead of the server password. If the database doesn't have a password just use ' "" '.