solon Posted August 26, 2009 Share Posted August 26, 2009 Hey guys , i get the following error and i have no idea why and how to fix it! There is no 'test'@'%' registered I should say that "test" is the username i had previously on my database. Now i changed that to "test2" and on a different server. I check very carefully on every page that had these info and changed it from "test" to "test2". Any help would be great! Thanks in advance, Solon Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted August 26, 2009 Share Posted August 26, 2009 And just how do you think someone on a forum would be able to help you with your code that is producing that message without seeing the code responsible for that message? I'll guess it is some javascirpt validation code in your form that is messing up the data being put into your query? Quote Link to comment Share on other sites More sharing options...
solon Posted August 26, 2009 Author Share Posted August 26, 2009 The reason i did not post the code is because i dont know what part of the code produces the error. There are 4 files included in 1 and over 3000 lines of code. Although the only part that has to do with actually connecting to the db is <?php $conn=mysql_connect('localhost','test2','password'); if (!$conn = mysql_connect('localhost', 'test2', 'password') ) { die(mysql_error()); } if (!mysql_select_db('dbname',$conn) ) { die('Could not select database'); } ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.