-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVisualizar.php
28 lines (22 loc) · 1.04 KB
/
Visualizar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php require_once "./Includes/Header.php"; ?>
<?php require_once "./Connection/Crud.php"; ?>
<div>
<?php
$crud = new Crud();
$idUser = filter_input(INPUT_GET,'cd', FILTER_SANITIZE_SPECIAL_CHARS);
$Bfetch = $crud->selectBD("*","tb_dados_cliente", "where cd =?", array($idUser));
$Fetch = $Bfetch->fetch(PDO::FETCH_ASSOC);
?>
<h1>Dados do usuario</h1>
<hr>
<strong>Código: </strong> <?php echo $Fetch['cd']; ?><br>
<strong>Nome: </strong> <?php echo $Fetch['nome']; ?><br>
<strong>Sobre nome: </strong> <?php echo $Fetch['sobrenome']; ?><br>
<strong>Idade: </strong> <?php echo $Fetch['idade']; ?><br>
<strong>Sexo: </strong> <?php echo $Fetch['sexo']; ?><br>
<strong>Endereço: </strong> <?php echo $Fetch['endereco']; ?> <br>
<strong>Bairro: </strong> <?php echo $Fetch['bairro']; ?> <br>
<strong>Cidade: </strong> <?php echo $Fetch['cidade']; ?> <br>
<strong>Estado: </strong> <?php echo $Fetch['estado']; ?> <br>
</div>
<?php require_once "./Includes/Footer.php"; ?>