I have created a MySQL database on my hosting service. They have given me my connection strings:
$dbh=mysql_connect ("localhost", "zachweb_zachweb", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
the problem is, when I enter my information into the connection string, such as my password, I get a permission error.
Warning: mysql_connect(): Access denied for user: 'zachweb_zachweb@localhost' (Using password: YES) in Warning: mysql_connect(): Access denied for user: 'zachweb_zachweb@localhost' (Using password: YES) in /home/zachweb/public_html/data.php on line 9
I pasted the connection strings for 'data.php' into the body tag. Is this correct? I need to actually connect to my database, then I will start the real stuff like adding tables, etc.