-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlistarLockers.php
53 lines (51 loc) · 2.35 KB
/
listarLockers.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
<?php
$conexion=mysqli_connect("localhost", "id1813498_admin_pl", "admin123", "id1813498_bdlockers");
$consulta="SELECT * FROM lockers";
$registros=mysqli_query($conexion, $consulta);
$registros1=mysqli_query($conexion, $consulta);
?>
<!DOCTYPE html>
<html lang="es">
<head>
<title>POLILOCKERS</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximun-scale=1, minimun-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/estiloListas.css">
</head>
<body>
<header>
<h1>LISTADO DE LOCKERS</h1>
<HR align="CENTER" size="2" width="75%" color="white" noshade>
<section class="container">
<div id="f_lockers">
<?php
while($row = $registros1->fetch_array(MYSQLI_BOTH)){
echo ' <form>
<label class="tit">Id : </label><label class="res">'.$row['id'].'</label><br>
<label class="tit">Bloque : </label><label class="res">'.$row['bloque'].'</label><br>
<label class="tit">Ubicacion : </label><label class="res">'.$row['ubicacion'].'</label><br>
<label class="tit">Descripcion : </label><label class="res">'.$row['descripcion'].'</label><br>
</form>';
}
?>
</div>
<table class="table table-striped tabla" id="t_lockers" border="1">
<tr>
<td><strong>ID</strong></td><td><strong>BLOQUE</strong></td><td><strong>UBICACION</strong></td><td><strong>DESCRIPCION</strong></td>
</tr>
<?php
while($row = $registros->fetch_array(MYSQLI_BOTH)){
echo '<tr>
<td>'.$row['id'].'</td>
<td>'.$row['bloque'].'</td>
<td>'.$row['ubicacion'].'</td>
<td>'.$row['descripcion'].'</td>
</tr>';
}
?>
</table>
</section>
</header>
</body>
</html>