게시판 | 게시판 글쓰기시 날자, 조회수 변경하기
페이지 정보
작성자 YJNet 작성일14-10-01 12:20 조회29,286회 댓글0건본문
<write.skin.php 파일에 추가>
<tr>
<th scope="row"><label for="wr_datetime">날짜</label></th>
<td><input type="text" name="wr_datetime" <?php if(!$write['wr_datetime']) echo "value='".date("Y-m-d H:i:s")."'"; else echo "value='".$write['wr_datetime']."'"; ?> id="wr_datetime" class="frm_input" size="30"></td>
</tr>
<th scope="row"><label for="wr_datetime">날짜</label></th>
<td><input type="text" name="wr_datetime" <?php if(!$write['wr_datetime']) echo "value='".date("Y-m-d H:i:s")."'"; else echo "value='".$write['wr_datetime']."'"; ?> id="wr_datetime" class="frm_input" size="30"></td>
</tr>
<tr>
<th scope="row"><label for="wr_hit">조회수</label></th>
<td><input type="text" name="wr_hit" value="<?php echo $write['wr_hit']; ?>" id="wr_hit" class="frm_input" size="10"></td>
</tr>
<th scope="row"><label for="wr_hit">조회수</label></th>
<td><input type="text" name="wr_hit" value="<?php echo $write['wr_hit']; ?>" id="wr_hit" class="frm_input" size="10"></td>
</tr>
<write_update.skin.php 파일 생성>
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
$sql1 = " update $write_table set wr_datetime='$wr_datetime', wr_last='$wr_datetime', wr_hit='$wr_hit' where wr_id = '$wr_id' ";
sql_query($sql1);
?>
sql_query($sql1);
?>
댓글목록
등록된 댓글이 없습니다.