TehShlocker
06-25-2006, 11:45 AM
Okay This is a very simple problem, I just don't know how to fix it... Here's my Query:
SELECT Password,MemberName FROM members WHERE MemberName = "$Mebr" and Password = "$Pswd"
when $Mebr and $Pswd were set earlier vie a $_Post script:
$Pswd=$_Post["Pswd"];
$Mebr=$_Post["Mebr"]; $Mebr = strtolower($Mebr);
The Problem is, when the query is submitted it goes through succesfully, but instead of Comparing MemberName to whatever the $Mebr is, it literally Compares MemberName to "$Mebr"... and the same with Password and $Pswd.
I just started SQL and PHP Yesterday (You prolly have seen my other posts...) so I'm sure this is some simple problem with a simple fix, I just can't figure it out. :D
SELECT Password,MemberName FROM members WHERE MemberName = "$Mebr" and Password = "$Pswd"
when $Mebr and $Pswd were set earlier vie a $_Post script:
$Pswd=$_Post["Pswd"];
$Mebr=$_Post["Mebr"]; $Mebr = strtolower($Mebr);
The Problem is, when the query is submitted it goes through succesfully, but instead of Comparing MemberName to whatever the $Mebr is, it literally Compares MemberName to "$Mebr"... and the same with Password and $Pswd.
I just started SQL and PHP Yesterday (You prolly have seen my other posts...) so I'm sure this is some simple problem with a simple fix, I just can't figure it out. :D