-
Notifications
You must be signed in to change notification settings - Fork 0
/
novel.php
76 lines (64 loc) · 1.88 KB
/
novel.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
65
66
67
68
69
70
71
72
73
74
75
76
<?php
require "header.php";
?>
<div class="update">
<h3>Completed</h3>
<table width=100%>
<thead class="thead">
<tr>
<th width=60%>Novel</th>
<th width=40%>Author</th>
</tr>
</thead>
<?php
$sql="SELECT * from novel where status=1";
$result=mysqli_query($conn,$sql);
foreach($result as $key=>$novel){
?>
<tr>
<td class="nowrap">
<a href="about.php?novel_name=<?php echo $novel['novel_name'];?>">
<?php
echo $novel['novel_name'];
?>
</a>
</td>
<td class="nowrap">
<?php
echo $novel['user_name'];
}
?>
</td>
</tr>
</table>
<h3>Ongoing</h3>
<table width=100%>
<thead class="thead">
<th width=60%>Novel</th>
<th width=40%>Author</th>
</thead>
<?php
$sql="SELECT * from novel where status=0";
$result=mysqli_query($conn,$sql);
foreach($result as $key=>$novel){
?>
<tr>
<td>
<a href="about.php?novel_name=<?php echo $novel['novel_name'];?>">
<?php
echo $novel['novel_name'];
?>
</a>
</td>
<td>
<?php
echo $novel['user_name'];
}
?>
</td>
</tr>
</table>
</div>
<?php
require "footer.php";
?>