prepare($sql); $stmt->bindParam(':name', $name); $stmt->bindParam(':email', $email); $stmt->bindParam(':gender', $gender); $stmt->bindParam(':birthdate', $isoDate); $stmt->bindParam(':id', $id, PDO::PARAM_INT); if ($stmt->execute()) { header('Location: index.php'); } else { echo "Erro ao alterar"; print_r($stmt->errorInfo()); } ?>