I\'ve seen a few errors like this, but I found no answer.
Unable to connect to database: Access denied for user \'\'@\'localhost\' to database \'socialdb\'
You're missing username and password parameter, should be:
$con = mysql_connect("localhost","username","password");