-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail_view.php
49 lines (48 loc) · 1.68 KB
/
detail_view.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
<?php
include_once "./include/header.php";
?>
<?php
$conn = mysqli_connect("localhost","root","1234","shopping");
$sql = "select * from review where no={$_GET['no']}";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_array($result);
?>
<div id="newPage2">
<div id="reviewPage">
<h2><?=$row['title']?></h2>
<div id="reviewLi">
<ul>
<li>
<p>글쓴이:</p>
<span><?=$row['writer']?></span>
</li>
<li>
<p>카테고리:</p>
<span><?=$row['kinds']?></span>
</li>
<li>
<div><img src="<?=$row['photo1']?>" alt=""></div>
</li>
<li>
<div><?=$row['contents']?></div>
</li>
</ul>
</div>
<div class="reviewBtn">
<form action="update.php" method="post">
<input type="hidden" name="no" value="<?=$row['no']?>">
<button type="submit">수정</button>
</form>
<form action="./process/reviewdel_process.php" method="post">
<input type="hidden" name="no" value="<?=$row['no']?>">
<button type="submit">삭제</button>
</form>
</div>
<div id="passList">
<h2><a href="./review.php">게시글 리스트 보기</a></h2>
</div>
</div>
</div>
<?php
include_once "./include/footer.php";
?>