글쓰기에서 bo_1 값을 수정하게 하려고 합니다.
본문
글쓰기에서 bo_1 값을 수정하게 하려고 합니다.
write.skin.php에 bo_1 input을 넣고 write_update.skin.php에 sql_query를 넣었는데 잘 안되요ㅜ
도움 부탁 드립니다.
<input type="text" name="bo_1" value="<?php echo $board[bo_1] ?>" class="frm_input required" size="50" maxlength="255">
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if($w == '')
{
sql_query(" update {$g5['board_table']} set bo_1='$board[bo_1]' where bo_table='$bo_table' ");
}
?>
답변 1
sql_query(" update {$g5['board_table']} set bo_1='$bo_1' where bo_table='$bo_table' ");
이렇게 하셔야 할거 같은데요....
답변을 작성하시기 전에 로그인 해주세요.