ZappyLawns Posted April 14, 2014 Share Posted April 14, 2014 (edited) I am trying to do it but this is what happens when i test it: http://zappylawnstest.x10.mx/login.php If you want to help please please do help me go to this link: [removed] sry i wont post there is just way too much. my guess whats wrong is the variables but i dont know. I am new to php so i just used a free scource Edited April 14, 2014 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/287759-loginregister-help/ Share on other sites More sharing options...
Ch0cu3r Posted April 14, 2014 Share Posted April 14, 2014 It would be helpful if you explained what you are trying to. Also the link you posted is dead. Quote Link to comment https://forums.phpfreaks.com/topic/287759-loginregister-help/#findComment-1476094 Share on other sites More sharing options...
alphamoment Posted April 14, 2014 Share Posted April 14, 2014 The database is refusing your connection. Check the connection function and make sure its right.Probably something like this: $link = mysql_connect('localhost', 'root', 'password'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; If however your connect function is right, please check your MySQL database users to confirm they exist/match the details you are using. You can also add a new user to connect through in MySQL. CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; If you're using a different IP compared to the one you're trying to connect to; change 'localhost' to the IP you're trying to remote access from. I'm not very good at PHP either but I help this helps you. Quote Link to comment https://forums.phpfreaks.com/topic/287759-loginregister-help/#findComment-1476134 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.