생활코딩 실전응용-Web Application

Status1.php 코드 - 정보조회 페이지

Status1.php 는 Index.php와 같고, article 부분만 변경해줬습니다.

1
2
3
4
5
6
7
8
9
10
<article>
<?php
$sql = 'SELECT * FROM `newitem`';
$result = mysqli_query($conn,$sql);
while($row = mysqli_fetch_assoc($result)){
echo $row['id'].htmlspecialchars($row['dwg_tag']).htmlspecialchars($row['item_tag']).htmlspecialchars($row['emp_tag']).$row['created'].$row['remark'];
}
?>
</article>
<a href="input1.php">Write</a>

 

article 에 있는 데이타를 표로 만들어서 정리할 생각입니다.

아래와 같은 코드를 찾았는데, 어떻게 조합할지는 좀 생각을 해봐야겠네요.

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
<head>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
</body>

 

댓글

댓글 본문
버전 관리
nomadlife
현재 버전
선택 버전
공동공부
graphittie 자세히 보기