_Xero_
New Member
- Messages
- 152
- Reaction score
- 0
- Points
- 0
Can someone help me with some php-mysql? I keep getting this error on my page:
Warning: mysql_connect(): Access denied for user: 'xero@localhost' (Using password: NO) in /home/xero/public_html/common.php on line 5
Error! Could not connect to database: Access denied for user: 'xero@localhost' (Using password: NO)
this is the source:
$server = mysql_connect( "localhost", "xero" )
or die( "Error! Could not connect to database: " . mysql_error() );
$connect = mysql_select_db( "index", $server )
or die( "Error! Could not select the database: " . mysql_error() );
Warning: mysql_connect(): Access denied for user: 'xero@localhost' (Using password: NO) in /home/xero/public_html/common.php on line 5
Error! Could not connect to database: Access denied for user: 'xero@localhost' (Using password: NO)
this is the source:
$server = mysql_connect( "localhost", "xero" )
or die( "Error! Could not connect to database: " . mysql_error() );
$connect = mysql_select_db( "index", $server )
or die( "Error! Could not select the database: " . mysql_error() );