Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Banned
    Join Date
    Aug 2002
    Posts
    111
    Thanks
    0
    Thanked 0 Times in 0 Posts

    my query is problem

    Hi how are you doing?

    I try to run username and password script but my query may have a problem.

    I did like this

    That;s part of codes

    $username=$_POST['username'];
    $password=$_POST['password'];
    $password=md5($password);
    $sql="select * from pk where username='$username' and password='$password'";


    and my query

    insert into pk (username,password) values('itohideo','1234)


    It should be ok right.

    but it is not working.

    Even though I input different username and password it comes "Welcome back". It desn't show up "Wrong Password"

    Please help

    Thanks all

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Do not create another topic. You already have it open for discussion here:

    username and password problem
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •