-
Notifications
You must be signed in to change notification settings - Fork 0
/
show.php
33 lines (25 loc) · 969 Bytes
/
show.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
<?php
require_once('connect.php');
$query = "SELECT * FROM inputtable ORDER BY del_date ASC";
echo '<table border="0" cellspacing="2" cellpadding="2">
<tr>
<th> <font face="Arial">topic</font> </th>
<th> <font face="Arial">no. of words</font> </th>
<th> <font face="Arial">info</font> </th>
<th> <font face="Arial">delivery date</font> </th>
</tr>';
if ($result = mysqli_query($con,$query)) {
while ($row = mysqli_fetch_assoc($result)) {
$field1name = $row["topic"];
$field2name = $row["no_of_words"];
$field3name = $row["info"];
$field4name = $row["del_date"];
echo '<tr>
<td>'.$field1name.'</td>
<td>'.$field2name.'</td>
<td>'.$field3name.'</td>
<td>'.$field4name.'</td>
</tr>';
}
}
?>