Why is this happening, it has been working fine for the last 2 months... But now I get this error all of a sudden :S
Help me?
Full error code:
Next, my connectionfile source:
Obviously the password isn't the same as the one in the snippet above, anyway, can anyone help me?
Help me?
Full error code:
PHP:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '127.0.0.1' (4) in /home/cybert97/public_html/scripts/connectionfile.php on line 6
Can't Connect To Database: Can't connect to MySQL server on '127.0.0.1' (4)
Next, my connectionfile source:
PHP:
<?php$database_username = "cybert97_admin";$database_password = "123";
//Opens connection to mysql server$dbc = mysql_connect("127.0.0.1", $database_username, $database_password);
if(!$dbc){ die("Can't Connect To Database: ".mysql_error());}
//Select database$db_selected = mysql_select_db("cybert97_users", $dbc);
if(!$db_selected){ die("Can't Connect To Database: ".mysql_error());}?>