-
Notifications
You must be signed in to change notification settings - Fork 0
/
logcoll.php
68 lines (38 loc) · 1.18 KB
/
logcoll.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
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="es">
<?php include("./config.php"); ?>
<head>
<?php include("./head.php"); ?>
</head>
<body>
<!-- Sidebar/menu -->
<?php include("./navi.php"); ?>
<!-- !PAGE CONTENT! -->
<div class="w3-main w3-center" style="margin-left:340px;margin-right:40px" id="wcont">
<!-- Header -->
<?php include("./header.php"); ?>
<!-- Body content -->
<?php
$conn;
$query1 = "SELECT id_massa, ciudad, logo_massa FROM `t_massas` ORDER BY `ciudad` ASC";
$query2 = "SELECT id_massa, ciudad, logo_massa FROM `t_massas` WHERE `logo_massa` NOT LIKE '%gral%'";
if ($result = mysqli_query($conn, $query2)) {
/* fetch associative array */
while ($row = mysqli_fetch_array($result)) {
echo "
<a href='./massa.php?massaid=".$row['id_massa']."' target='_blank'>
<img src=".$row['logo_massa']." alt='".$row['ciudad']."' class ='w3-border w3-padding' style='width:150px;height:150px;margin:3px;'></a>";
}
/* free result set */
mysqli_free_result($result);
}
echo "</div>";
/* close connection */
mysqli_close($conn);
?>
</div>
<!-- End page content -->
<?php include("./footer.php"); ?>
</body>
<!-- End body -->
</html>