- Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patharticles.php
More file actions
Latest commit
50 lines (46 loc) · 1.13 KB
/
Copy patharticles.php
File metadata and controls
50 lines (46 loc) · 1.13 KB
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
<?php
session_start();
include'conn.php';
?>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文章</title>
<link rel="stylesheet" type="text/css" href="css/general.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/general.js"></script>
<script type="text/javascript" src="js/carousel.js"></script>
</head>
<body>
<!-- 顶部开始 -->
<!-- 头部开始 -->
<?phpinclude'header.php'; ?>
<!-- 头部结束 -->
<!-- 主体开始 -->
<div class="container w1100">
<br> <br> <br> <br>
<ul>
<?php
$sql = "select * from wenzhang";
$result = $conn->query($sql);
if($result->num_rows>0){
while($row = $result->fetch_assoc()) {
?>
<li><a style = "font-size:19px" href='/article.php?wzid=<?phpecho$row['id'];
if (isset($_REQUEST['uid'])) {
echo"&uid=".$_REQUEST['uid']."'>";
}
echo$row['title']." 作者:".$row['author']." 时间:".$row['time'];
?>
</a></li><br>
<?php
}
}
?>
</ul>
</div>
<?php
include'db_close.php';
?>