prepare($sql); $stmt->bindParam(':nome', $nome); $stmt->bindParam(':email', $email); $stmt->bindParam(':end', $end); $stmt->bindParam(':senha', $pass); if ($stmt->execute()) { header('Location: index.php'); } else { echo "Erro ao cadastrar"; print_r($stmt->errorInfo()); } ?>