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