-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmalware-engines.php
More file actions
32 lines (30 loc) · 1.23 KB
/
malware-engines.php
File metadata and controls
32 lines (30 loc) · 1.23 KB
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
<?php
$sql = "SELECT * FROM malware_engines";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while ($row = $result->fetch_assoc()) {
echo "<div class=\"col-md-6 col-xl-3 mb-4\"><div class=\"card shadow border-left-info py-2\">
<a href=\"".$row["engine_url"] ."\">
<div class=\"card-body\">
<div class=\"row align-items-center no-gutters\">
<div class=\"col mr-2\">
<div class=\"text-dark font-weight-bold h5 mb-0\"><span>" . $row["malware_engine_name"] . "</span></div>
</div>
<div class=\"col-auto\"><i class=\"fas fa-biohazard fa-2x text-gray-300\"></i></div>
</div>
</div>
</a>
</div></div>";
}
} else {
echo "<div class=\"card shadow border-left-warning py-2\">
<div class=\"card-body\">
<div class=\"row align-items-center no-gutters\">
<div class=\"col mr-2\">
<div class=\"text-dark font-weight-bold h5 mb-0\"><span>⚠ No Malware Engine Found!</span></div>
</div>
</div>
</div>
</div>";
}