0810
08-13-2002, 07:56 AM
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
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