Pacopag Posted May 22, 2011 Share Posted May 22, 2011 I don't know how else to explain this. I have two php pages in the same domain, same folder, with exact same line to connect to mysql, and one works, and the other doesn't. I have no clue. This is the line $con = mysql_connect("localhost", "myusername", "mypassword"); Quote Link to comment https://forums.phpfreaks.com/topic/237076-mysql_connect-works-on-one-page-but-not-another/ Share on other sites More sharing options...
Pacopag Posted May 22, 2011 Author Share Posted May 22, 2011 Very sorry. Nevermind, I found the problem. I had the url mixed up with a page on my localhost. Quote Link to comment https://forums.phpfreaks.com/topic/237076-mysql_connect-works-on-one-page-but-not-another/#findComment-1218542 Share on other sites More sharing options...
Fadion Posted May 22, 2011 Share Posted May 22, 2011 Glad you fixed it up, but please mark the topic as "SOLVED" so others don't think you still need help. Quote Link to comment https://forums.phpfreaks.com/topic/237076-mysql_connect-works-on-one-page-but-not-another/#findComment-1218544 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.