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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -