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

Edited by Ch0cu3r
Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.