-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReservas.php
More file actions
42 lines (37 loc) · 875 Bytes
/
Reservas.php
File metadata and controls
42 lines (37 loc) · 875 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
<?php include'topo.php';
$sqlRead = "select * from af where idcategoria=3";
try{
$read = $db->prepare($sqlRead);
$read->execute();
}catch(PDOException $e){
echo $e->getMessage();
}
?>
<table id="listaItens">
<thead>
<tr>
<th>Nome</th>
<th>Vendedor</th>
<th>Reservado em</th>
<th>Fabricante</th>
<th>Serie</th>
<th>Previsão de entrega</th>
</tr>
</thead>
<?php
if($read->fetch(PDO::FETCH_OBJ)){
while ($rs = $read->fetch(PDO::FETCH_OBJ)){ ?>
<tr>
<td><?=$rs->nome?></td>
<td><?=$rs->idvendedor?></td>
<td><?=$rs->datareserva?></td>
<td><?=$rs->idfabricante?></td>
<td><?=$rs->idserie?></td>
<td><?=$rs->previsaoentrega?></td>
</tr>
<?php
}
?></table>
<?php
} else{echo "</table>Nenhuma item cadastrado";}
include 'rodape.php';