having problems with mysql statement where and or based on user input -


$query = "select username, email, password, salt            tbl_memembers            (username = $resetuser) or (email = $resetuser)"; 

this keeps returning there nothing in database, when know fact there matching details entered ($resetuser = $_post previous page)

try query

 $query = "select username, email, password, salt            tbl_memembers            username = '$resetuser'  email = '$resetuser' "; 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -