movethemind Posted September 13, 2008 Share Posted September 13, 2008 I have two files with the exact same code that give unexpected results when they are run: 1) http://www.csdvideo.net/DBconnect_net.php 2) http://www.csdvideo.net/DBconnect_net_rev1.php 1) runs fine and gives result stewards_leslie438mozart1stewards_stewardshipSuccessfully connected to the database. 2) gives error stewards_leslieflyangels4038stewards_stewardship Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'stewards_leslie'@'localhost' (using password: YES) in /home/stewards/public_html/DBconnect_net_rev1.php on line 23 Sorry, could not connect to mysql. does anyone know why this is happening? Thank you very much for your help. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/124015-solved-strange-and-unexpected-behavior/ Share on other sites More sharing options...
awpti Posted September 13, 2008 Share Posted September 13, 2008 The error implies they aren't the same exact code. Either the username or password supplied to the DB does not match the credentials the DB expects. Link to comment https://forums.phpfreaks.com/topic/124015-solved-strange-and-unexpected-behavior/#findComment-640270 Share on other sites More sharing options...
movethemind Posted September 13, 2008 Author Share Posted September 13, 2008 Thanks! That solved it, but am confused about database user names ... I'm still studying ... Link to comment https://forums.phpfreaks.com/topic/124015-solved-strange-and-unexpected-behavior/#findComment-640303 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.