-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtechnicians.php
More file actions
51 lines (39 loc) · 1007 Bytes
/
technicians.php
File metadata and controls
51 lines (39 loc) · 1007 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
45
46
47
48
49
50
51
<?php
if (isset($_SESSION['authorized'])) {
$query = "Select * from tech;";
$req = pg_query($db, $query);
?>
<hr>
<div class="container-tech">
<h2>Our extremely skilled technicians</h2>
<section class="tech-container">
<?php
while ($row = pg_fetch_array($req)) {
$code = $row['code'];
$name = $row['name'];
$surname = $row['surname'];
$photo = $row['photo'];
$description = $row['description'];
echo <<<_HTML
<div class="tech-card">
<div class="face front">
<div class="content">
<img src="$photo" alt="" />
</div>
</div>
<div class="face back">
<div class="content">
<h3>$name $surname</h3>
<p>
$description
</p>
</div>
</div>
</div>
_HTML;
}
?>
</section>
</div>
</div>
<?php } ?>