I am very new

joejoe BeginnerLink Clerk
Please can anyone give me an example about login PHP script with cookies connecting to MYsql db named "test"? Thanks for help.


Joe

Comments

  • james.ukjames.uk Junior Member Shared Hoster
    A psychopath with dyslexia
  • joejoe Beginner Link Clerk
    T tried, but all codes with some errors like followings.

    I don't know how to modify it, can anyone give me a working example.

    Anything I can do?

    Warning: Access denied for user: 'dbusername@localhost' (Using password: YES) in /home/GCO01/public_html/AS2/register.php on line 13

    Warning: MySQL Connection Failed: Access denied for user: 'dbusername@localhost' (Using password: YES) in /home/GCO01/public_html/AS2/register.php on line 13
    Could not establish connection
  • james.ukjames.uk Junior Member Shared Hoster
    its abit of a stupid question but you are changing the username and password to what your server is config to aint ya?
    A psychopath with dyslexia
  • joejoe Beginner Link Clerk
    Thanks James, now I can register a user, then how can I change to verify a exisitng user from the login?
  • james.ukjames.uk Junior Member Shared Hoster
    you mean, once the user has entered all the details you want it to tell you if the user alreayd exisits in the database so duplicate names and email address cant be created?
    A psychopath with dyslexia
  • joejoe Beginner Link Clerk
    No. I want to change it to login only, when user type in the user name and password, if it's exisit in my database, show a welcome message, otherwise show error message and ask to relogin.
Sign In or Register to comment.