-
Notifications
You must be signed in to change notification settings - Fork 1
/
last_6months.php
64 lines (56 loc) · 2.72 KB
/
last_6months.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
<?php include("header.php");
include("config.php");
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * from listed_in_6month order by date_added desc";
$result = $conn->query($sql);
?>
<!-- Page wrapper -->
<div class="page-wrapper">
<!-- End Bread crumb -->
<!-- Container fluid -->
<div class="container-fluid">
<!-- /# row -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="table-responsive m-t-8">
<table id="example23" class="display nowrap table table-hover table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th style="display:none;">Id</th>
<th>Name</th>
<th>Symbol</th>
<th>Date Listed
</th>
</tr>
</thead>
<tbody>
<?php
while($row = $result->fetch_assoc()) {
?>
<tr>
<td style="display:none;"><?php echo $row['id'];?></td>
<td><?php echo $row['name'];?></td>
<td><?php echo $row['symbol'];?></td>
<td><?php echo $row['date_added'];?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Container fluid -->
<?php include("footer.php");
?>