if ($_SERVER["REQUEST_METHOD"] === "POST") { $nome = $_POST["nome"] ?? ""; $nascimento = $_POST["nascimento"] ?? ""; if (!empty($nome)) { $sql = "INSERT INTO pacienteguilherme (nome,nascimento) VALUES (:nome, :nascimento)"; $stmt = $conn->prepare($sql); $stmt->bindParam(":nome", $nome); $stmt->execute(); header("Location: ".$_SERVER['PHP_SELF']); exit; } else { echo "

Preencha todos os campos.

"; } } ?>

Consultorio do guilherme


Listagem dos pacientes

Id paciente Nome Dt Paciente Peso-kg Altura Grupo sanguineo Fator RH
1Guilherme Silva15/05/0075.51.78O+
2Maria Souza22/08/95621.65A-
3Carlos Eduardo05/11/8882.31.8B+
4Ana Júlia Costa30/03/0255.61.62AB-
5Ricardo Oliveira10/01/90851.82B-