Ok, so I changed my 2nd line of PHP code to show 'localhosr' and also tried 'localhost' as a test and came up with 2 errors
localhosr - code error
Code:
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'localhosr' (1) in /home/back2fro/public_html/OHL/asc1.php on line 2
Could not connect: Unknown MySQL server host 'localhosr' (1)
**Assumption: this hostname is incorrect, as then I tried localhost...
localhost - code error
Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'back2fro_users'@'10.33.248.79' (using password: YES) in /home/back2fro/public_html/OHL/asc1.php on line 2
Could not connect: Access denied for user 'back2fro_users'@'10.33.248.79' (using password: YES)
** here is the full PHP code again..
I do understand my Username for x10hosting, which is 'back2fro' needs to be displayed at the beginning of my user who logins to sql so I created a user named "users". so i Put back2fro_users, and the password corresponding to that SQL user
Code:
<?php
$con = mysql_connect("localhost","back2fro_users","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
print "CONNECTED";
mysql_close($con);
?>