-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpesquisa.php
57 lines (45 loc) · 1.46 KB
/
pesquisa.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
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pesquisa</title>
<link rel="stylesheet" href="style.css">
<script src="scripts.js"></script>
</head>
<body>
<?php
include "conexao.php";
$sql ="SELECT cod,nome,telefone FROM usuarios";
$dados = mysqli_query($conn,$sql);
?>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">NOME</th>
<th scope="col">TELEFONE</th>
<th scope="col">Funções</th>
</tr>
</thead>
<tbody>
<?php
while($linha = mysqli_fetch_assoc($dados)){
$cod_pessoa= $linha['cod'];
$nome= $linha['nome'];
$telefone=$linha['telefone'];
echo "<tr>
<th scope='row'>$cod_pessoa</th>
<td>$nome</td>
<td>$telefone</td>
<td width=150px> <a href='cadastro_edit.php?id=$cod_pessoa'>Editar</a>
<a href='excluir_script.php?id=$cod_pessoa'>Excluir</a>
</td>
</tr>";
}
?>
</tbody>
</table>
<a href="index.html">Voltar</a>
</body>
</html>