Here is my code:
$param = $old_password.$salt;
$hashed_password = $this->general->hash($param);
//echo $hashed_password;echo " "; echo $userdata->password;exit;
if($hashed_password == $userdata->password){
print_r("com");exit;
}
print_r("didn't match");exit;
when I echo as above result is
8fb9ccf75da3c0eb285d3dddd80895a8f15f64d5 8fb9ccf75da3c0eb285d3dddd80895a8f15f64d5
which is exactly same. But it doesn't enters into the if statement.