-
Notifications
You must be signed in to change notification settings - Fork 7
/
editar.php
46 lines (42 loc) · 1.44 KB
/
editar.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
session_start();
include_once 'includes/header.inc.php';
include_once 'includes/menu.inc.php';
?>
<div class="row container">
<div class="col s12">
<h5 class="light">Edição de Registros</h5><hr>
</div>
</div>
<?php
include_once 'BD/conexao.php';
$id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);
$_SESSION['id'] = $id;
$querySelect = $link->query("SELECT * FROM clientes WHERE id='$id'");
while($registros = $querySelect->fetch_assoc()):
$nome = $registros['nome'];
$email = $registros['email'];
$telefone = $registros['telefone'];
$fornecedor = $registros['fornecedor'];
$conferente = $registros['conferente'];
endwhile;
?>
<!-- FORMULARIO DE CADASTRO -->
<div class="row container">
<p> </p>
<form action="BD/update.php" method="post" class="col s12">
<fieldset class="formulario" style="padding: 15px">
<legend>
<img src="img/user.png" alt="[image]" width="150">
</legend>
<h5 class="light center">Alteração</h5>
<?php include 'includes/edit_inputs.inc.php'; ?>
<!-- BOTÕES -->
<div class="input-field col s12">
<input type="submit" value="alterar" class="btn blue">
<a href="consultas.php" class="btn red">cancelar</a>
</div>
</fieldset>
</form>
</div>
<?php include_once 'includes/footer.inc.php' ?>