-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (34 loc) · 1.08 KB
/
Copy pathindex.php
File metadata and controls
35 lines (34 loc) · 1.08 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
33
34
35
<h1>Data Scraped from Covid-19.pk</h1>
<?php
$all_provinces = include ('getCovid-19Data.php');
?>
<div style="width: 100%;text-align: center;">
<div style="width: 100%;display: inline">
<table border="2px" style="width: 100%;border-collapse: collapse; text-align: center" >
<thead>
<th>State/Province</th>
<th>Total Cases</th>
<th>Total Recovered</th>
<th>Total Deaths</th>
</thead>
<tbody>
<?php
foreach ($all_provinces as $prov)
{
?>
<tr>
<td><?= $prov['name'];?></td>
<td><?= $prov['total_cases'];?></td>
<td><?= $prov['total_recovered'];?></td>
<td><?= $prov['total_deaths'];?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<!-- <div style="width: 50%;display: inline">-->
<!-- <iframe src="https://www.covid-19.pk/" frameborder="0"></iframe>-->
<!-- </div>-->
</div>