-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVendedores.php
More file actions
44 lines (39 loc) · 879 Bytes
/
Vendedores.php
File metadata and controls
44 lines (39 loc) · 879 Bytes
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
<?php include'topo.php';
$sqlRead = 'select * from vendedores';
try{
$read = $db->prepare($sqlRead);
$read->execute();
}catch(PDOException $e){
echo $e->getMessage();
}
?>
<table id="listaItens">
<thead>
<tr>
<th>Loja</th>
<th>Contato</th>
<th>Telefone</th>
<th>E-mail</th>
<th>Rede social</th>
<th>Site</th>
<th>Observação</th>
</tr>
</thead>
<?php
if($read->fetch(PDO::FETCH_OBJ)){
while ($rs = $read->fetch(PDO::FETCH_OBJ)){ ?>
<tr>
<td><?=$rs->nomeloja?></td>
<td><?=$rs->nomecontato?></td>
<td><?=$rs->tel?></td>
<td><?=$rs->email?></td>
<td><?=$rs->rsocial?></td>
<td><?=$rs->site?></td>
<td><?=$rs->obs?></td>
</tr>
<?php
}
?></table>
<?php
} else{echo "</table>Nenhuma item cadastrado";}
include 'rodape.php';