You are not returning anything so there is nothing to dump
Which part to you expect it to dump? The statement? The userId ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
in my project each user have connectionID and i want to update them in the following way i have updateConnection method
public function updateConnection($connectionID, $userID){
$statement = $this->db->prepare(
"UPDATE `user` SET `connectionID` = :connectionID WHERE `userID` = :userID"
);
$statement->bindParam('connectionID', $connectionID, PDO::PARAM_INT);
$statement->bindParam('userID', $userID, PDO::PARAM_INT);
$statement->execute();
}
and when i "var_dump($userObj->updateConnection($user->connectionID,$user->userID));" IT RETURN null for me ! i dont know why it is not working ? any one who can help me please?
Please or to participate in this conversation.