조회수 수정 스킨 정보
게시판 조회수 수정 스킨첨부파일
테스트한 버전5.4
호환 가능 버전5.3이상
본문
write.skin.php
<?php
if($member['mb_level']==10){
?>
<div class="form-group has-feedback">
<label class="col-sm-2 control-label" for="wr_hit">조회수<strong class="sound_only">필수</strong></label>
<div class="col-sm-3">
<input type="text" name="wr_hit" value="<?php echo $write['wr_hit'] ?>" id="wr_hit" required class="form-control input-sm" size="10" maxlength="20">
<span class="fa fa-check form-control-feedback"></span>
</div>
</div>
<?php } ?>
<?php if ($is_name) { ?>
<div class="form-group has-feedback">
<label class="col-sm-2 control-label" for="wr_name">이름<strong class="sound_only">필수</strong></label>
<div class="col-sm-3">
<input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="form-control input-sm" size="10" maxlength="20">
<span class="fa fa-check form-control-feedback"></span>
</div>
</div>
<?php } ?>
/bbs/write_update.php
수정부분 wr_hit 추가
wr_hit='{$wr_hit}',
$sql = " update {$write_table}
set ca_name = '{$ca_name}',
wr_option = '{$html},{$secret},{$mail}',
wr_subject = '{$wr_subject}',
wr_content = '{$wr_content}',
wr_link1 = '{$wr_link1}',
wr_link2 = '{$wr_link2}',
mb_id = '{$mb_id}',
wr_name = '{$wr_name}',
wr_email = '{$wr_email}',
wr_homepage = '{$wr_homepage}',
wr_1 = '{$wr_1}',
wr_2 = '{$wr_2}',
wr_3 = '{$wr_3}',
wr_4 = '{$wr_4}',
wr_5 = '{$wr_5}',
wr_6 = '{$wr_6}',
wr_7 = '{$wr_7}',
wr_8 = '{$wr_8}',
wr_9 = '{$wr_9}',
wr_hit='{$wr_hit}',
wr_10 = '{$wr_10}',
as_type = '{$as_type}',
as_img = '{$as_img}',
as_publish = '{$as_publish}',
as_extra = '{$as_extra}',
as_extend = '{$as_extend}',
as_down = '{$as_down}',
as_view = '{$as_view}',
as_tag = '{$as_tag}',
as_map = '{$as_map}',
as_icon = '{$as_icon}',
as_update = '{$as_update}'
{$sql_ip}
{$sql_password}
where wr_id = '{$wr['wr_id']}' ";
sql_query($sql);
추천
4
4
댓글 전체
감사합니다 ^^
감사합니다.
감사합니다 ^^~~
감사합니다
좋은 팁이네요~ 감사합니다.