Jump to content

Login/Register Help


ZappyLawns

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/287759-loginregister-help/
Share on other sites

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.:)

Link to comment
https://forums.phpfreaks.com/topic/287759-loginregister-help/#findComment-1476134
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.