farban6 Posted November 11, 2011 Share Posted November 11, 2011 this is on amensharma.co.uk/testing <?php $db_link = mysql_connect("amensharma.co.uk","amenshar_admin","amen001"); if (!$db_link) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db('amenshar_calender', $db_link); if (!$db_selected) { die ('Can\'t use database : ' . mysql_error()); } ?> this is the error it returns Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'amenshar_admin'@'neptune.servers.rbl-mer.misp.co.uk' (using password: YES) in /home/amenshar/public_html/testing/functions/database.php on line 4 Could not connect: Access denied for user 'amenshar_admin'@'neptune.servers.rbl-mer.misp.co.uk' (using password: YES) bit stumped here any help would be great all the details are correct, just confused why im having these errors Link to comment https://forums.phpfreaks.com/topic/250948-more-connecting-to-database-on-live-site-errors/ Share on other sites More sharing options...
xyph Posted November 11, 2011 Share Posted November 11, 2011 TALK. TO. YOUR. HOST. And stop copying your password for the whole world to see. Link to comment https://forums.phpfreaks.com/topic/250948-more-connecting-to-database-on-live-site-errors/#findComment-1287412 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.