I'm writing code for a user to update his password on a user account system.
This is the portion of code I am referring to:
$checker = mysqli_query($db, "SELECT userid FROM tbl_user WHERE userpassword = '".md5($current)."'");
//echo "SELECT userid FROM tbl_user WHERE userpassword = '".md5($current)."'";
if ($checker == $_SESSION['exp_user']['userid']) {$check = true;} else {$check = false;}
For some reason, $checker is returning an object array rather than an object itself.
Doing a print_r($checker) produces this:
mysqli_result Object ( [current_field] => 0 [field_count] => 1 [lengths] => [num_rows] => 1 [type] => 0 )
Any ideas on what I should be doing?