I have a query that updates a record on my database, it works fine but i wanted to know how to check if the update has happened so i can return true and display the right me
check if below works:
$query = "UPDATE user SET password = ? WHERE email = ?"; if($stmt = $conn->prepare($query)) { $stmt->bind_param('ss', $pwd, $userEmail); if ($stmt->execute()) { // Worked... } else { // Didn't work... } }