Connect to your database. You can use the following script: $dbh=mysql_connect ("localhost", "USERNAME", "PASSWORD") or die ('I cannot connect to the database because: ' . mysql_error()); Replace USERNAME with your username, PASSWORD with your password, and DATABASE with the data that you are ...