미채택 완료

db에 g5_board_file에 어떻게 입력시키는 건가요...?

Copy
" update {$g5['board_file_table']}                        set bf_source = '{$upload[$i]['source']}',                             bf_file = '{$upload[$i]['file']}',							 bf_link = '{$upload[$i]['wr_img1']}',                             bf_content = '{$bf_content[$i]}',                             bf_filesize = '{$upload[$i]['filesize']}',                             bf_width = '{$upload[$i]['image']['0']}',                             bf_height = '{$upload[$i]['image']['1']}',                             bf_type = '{$upload[$i]['image']['2']}',                             bf_datetime = '".G5_TIME_YMDHIS."'                      where bo_table = '{$bo_table}'                                and wr_id = '{$wr_id}'                                and bf_no = '{$i}' ";            sql_query($sql);        }        else        {            $sql = " update {$g5['board_file_table']}                        set bf_content = '{$bf_content[$i]}'                        where bo_table = '{$bo_table}'                                  and wr_id = '{$wr_id}'                                  and bf_no = '{$i}' ";            sql_query($sql);        }    }    else    {        $sql = " insert into {$g5['board_file_table']}                    set bo_table = '{$bo_table}',                         wr_id = '{$wr_id}',                         bf_no = '{$i}',                         bf_source = '{$upload[$i]['source']}',                         bf_file = '{$upload[$i]['file']}',						 bf_link = '{$upload[$i]['wr_img1']}',                         bf_content = '{$bf_content[$i]}',                         bf_download = 0,                         bf_filesize = '{$upload[$i]['filesize']}',                         bf_width = '{$upload[$i]['image']['0']}',                         bf_height = '{$upload[$i]['image']['1']}',                         bf_type = '{$upload[$i]['image']['2']}',                         bf_datetime = '".G

한 분이 알려주셔서 여기서 업데이트하는건 알았는데

필드 추가한다고 그냥 들어가는건 아니던데..

ㅠㅠ..

쿼리넣는 곳이 따로 있나요?

|

답변 1개 / 댓글 1개

프로그램 수정이 필요한데

이런 부분은 의뢰로 해결하시는게 빠를꺼 같습니다.

답변에 대한 댓글 1개

답변을 작성하려면 로그인이 필요합니다.