g4에서 게시판 이전할때 첨부파일 문제 정보
g4에서 게시판 이전할때 첨부파일 문제본문
wr_file 값 생성
board.php 파일 18번 라인 아래 아래 소스 적용 후 게시판 호출.
그 다음 파일 출력이 정상이면 소스 삭제 하시면 됩니다.
$result1= sql_query("select * from g5_write_$bo_table");
for ($i=0;$row1=sql_fetch_array($result1);$i++){
$row2 = sql_fetch("select count(*) as cnt from g5_board_file where bo_table='$bo_table' and wr_id='$row1[wr_id]' ");
sql_query("update g5_write_$bo_table set wr_file='$row2[cnt]' where wr_id='$row1[wr_id]' ");
}
board.php 파일 18번 라인 아래 아래 소스 적용 후 게시판 호출.
그 다음 파일 출력이 정상이면 소스 삭제 하시면 됩니다.
$result1= sql_query("select * from g5_write_$bo_table");
for ($i=0;$row1=sql_fetch_array($result1);$i++){
$row2 = sql_fetch("select count(*) as cnt from g5_board_file where bo_table='$bo_table' and wr_id='$row1[wr_id]' ");
sql_query("update g5_write_$bo_table set wr_file='$row2[cnt]' where wr_id='$row1[wr_id]' ");
}
추천
2
2
댓글 3개
감사합니당ㅇ
댓글 감사합니다.
사용중에 이해가 안가시거나, 작동이 이상하면 댓글로 남겨 주세요
제가 올린 글이니 끝까지 AS를...ㅎㅎ
사용중에 이해가 안가시거나, 작동이 이상하면 댓글로 남겨 주세요
제가 올린 글이니 끝까지 AS를...ㅎㅎ
http://sir.co.kr/qa/?wr_id=793#c_801
제 경우는 링크의 방법으로 해결했습니다.
제 경우는 링크의 방법으로 해결했습니다.