-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_news.php
69 lines (45 loc) · 1.58 KB
/
view_news.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
<!doctype html>
<html>
<head>
<?php
include('session.php');
$newsid=$_GET['news_id'];
$sql=mysqli_query($db,"SELECT * FROM news WHERE news_id = '$newsid'");
$row=mysqli_fetch_array($sql)
?>
<title>News Detail-City Without Crime</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/admin_record.css"/>
<link rel="stylesheet" href="css/w3.css"/>
</head>
<body style="background-image:url('images/wood.jpg');">
<header>
<h1>City Without Crime</h1>
<a href="logout.php" title="logout">logout</a>
</header>
<div class="main-content">
<form class="form-register" method="post" action="#" enctype="multipart/form-data">
<div class="form-register-with-email">
<div class="form-white-background">
<div class="form-title-row">
<h1><?php echo $row[1]; ?></h1>
</div>
<div class="form-row">
<br />
</div>
<div class="form-row">
<p style="padding: 10px;"> <?php echo $row[3]; ?></p>
</div>
</div>
</div>
</form>
</div>
</section>
<footer>
<div class="footer">
©All right resrved to CWC.
</div>
</footer>
</div>
</body>
</html>