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]' ");
}
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1362 | |
| 1350 | |
| 1342 | |
| 1340 | |
| 1335 | |
| 1332 | |
| 1330 | |
| 1322 | |
| 1317 | |
| 1315 | |
| 1312 | |
| 1305 | |
| 1300 | |
| 1298 | |
| 1293 | |
| 1287 | |
| 1286 | |
| 1267 | |
| 1262 | |
| 1259 | |
| 1255 | |
| 1252 | |
| 1245 | |
| 1244 | |
| 1240 | |
| 1238 | |
| 1235 | |
| 1229 | |
| 1224 | |
| 1220 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기