-
Notifications
You must be signed in to change notification settings - Fork 0
/
excel.php
43 lines (35 loc) · 1.1 KB
/
excel.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
<?php $carousel="no";
include ( "./inc/header.inc.php");
?>
<body>
<div class="container">
<div class="panel">
<div class="panel-heading">
<h3>Export Books Data into Excel Sheet</h3>
<div class="panel-body">
<table border="1" class="table table-bordered table-striped">
<tr>
<th>Name</th>
<th>Jan</th>
<th>Feb</th>
<th>Mar</th>
</tr>
<?php
$get = DB::query('SELECT * FROM subscription');
foreach($get as $p){
echo '
<tr>
<td>'.$p["id"].'</td>
<td>'.$p["jan"].'</td>
<td>'.$p["feb"].'</td>
<td>'.$p["mar"].'</td>
<tr>
';
}
?>
</table>
<a href="export-book">Export To Excel</a>
</div>
</div>
</div>
</div>