Thread: Login error
View Single Post
Old 10-09-2012, 08:21 PM   PM User | #2
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 892
Thanks: 4
Thanked 206 Times in 205 Posts
tracknut is an unknown quantity at this point
Code:
$query = "SELECT * FROM $tb_name WHERE username='$username' AND password='$password'";
You're putting the entered values in $myusername and $mypassword. Shouldn't this be:

Code:
$query = "SELECT * FROM $tb_name WHERE username='$myusername' AND password='$mypassword'";
Dave
tracknut is offline   Reply With Quote
Users who have thanked tracknut for this post:
hans_cellc (10-09-2012)