GoDaddy runs its database servers off a remote host.
So, your $con statement will appear like the following:
$con = mysql_connect("USERNAME.db.123456789.hostedresource.com", "DATABASE_USERNAME", "DATABASE_PASSWORD");
You would then need to select the database in the following statement.
Join the SQL Training course if you want to gain more knowledge in SQL.
Do check out the below MySQL tutorial video that will help you out in a better way: