Hello,
When updating member information, update if a new password is entered or update password if it is empty
How is this done?
$stmt = $PDOdatabase->prepare("UPDATE members SET member_name=?, member_lasname=?, member_email=?, member_password_hash=? WHERE member_id=? ");
$stmt->bindParam(1, $member_name, PDO::PARAM_STR);
$stmt->bindParam(2, $member_lasname, PDO::PARAM_STR);
$stmt->bindParam(3, $member_email, PDO::PARAM_STR);
$stmt->bindParam(4, $member_password_hash, PDO::PARAM_STR);
$stmt->bindParam(5, $member_id, PDO::PARAM_STR);