write_update.skin.php 젤 하단에 추가해 주세요
이제 부터 썸네일 잃어 버리지 마시길~~ ^^
//bf_no 0부터 재 정렬, by 지러유
$i = 0;
$sql = " select * from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' order by bf_no";
$qry = sql_query($sql);
while($row = sql_fetch_array($qry)) {
if(!$row[bf_file]) {
break;
}
else if($row[bf_no] != '$i') {
sql_query ("update $g4[board_file_table] set bf_no = '$i' where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$row[bf_no]'");
$i++;
}
}//재정렬 끝
이제 부터 썸네일 잃어 버리지 마시길~~ ^^
//bf_no 0부터 재 정렬, by 지러유
$i = 0;
$sql = " select * from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' order by bf_no";
$qry = sql_query($sql);
while($row = sql_fetch_array($qry)) {
if(!$row[bf_file]) {
break;
}
else if($row[bf_no] != '$i') {
sql_query ("update $g4[board_file_table] set bf_no = '$i' where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$row[bf_no]'");
$i++;
}
}//재정렬 끝
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 34706 | |
| 34693 | |
| 34563 | |
| 34536 | |
| 34521 | |
| 34480 | |
| 34479 | |
| 34466 | |
| 34437 | |
| 34436 | |
| 34435 | |
| 34406 | |
| 34398 | |
| 34387 | |
| 34382 | |
| 34375 | |
| 34364 | |
| 34336 | |
| 34294 | |
| 34293 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기