CODE
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mgcontracts_admi'@'localhost' (using password: YES) in /www/vndv.com/m/g/c/mgcontracts/htdocs/dbcon.php on line 2
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'vhostswww'@'localhost' (using password: NO) in /www/vndv.com/m/g/c/mgcontracts/htdocs/dbcon.php on line 3
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /www/vndv.com/m/g/c/mgcontracts/htdocs/dbcon.php on line 3
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'vhostswww'@'localhost' (using password: NO) in /www/vndv.com/m/g/c/mgcontracts/htdocs/dbcon.php on line 3
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /www/vndv.com/m/g/c/mgcontracts/htdocs/dbcon.php on line 3
This is what i have got in dbcon.php
CODE
<?
$conn = mysql_connect("localhost","mgcontracts_admin","My password");
$db = mysql_select_db("mgcontracts_site");
?>
$conn = mysql_connect("localhost","mgcontracts_admin","My password");
$db = mysql_select_db("mgcontracts_site");
?>
I have edited my file so its my details, originally it was like this:
CODE
<?
$conn = mysql_connect("localhost","YOUR_USERNAME","YOUR_PASSWORD");
$db = mysql_select_db("YOUR_DB");
?>
$conn = mysql_connect("localhost","YOUR_USERNAME","YOUR_PASSWORD");
$db = mysql_select_db("YOUR_DB");
?>
Help would be appreciated