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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 34021 | |
| 33994 | |
| 33922 | |
| 33895 | |
| 33889 | |
| 33882 | |
| 33868 |
최신글
최신글 함수 개량
11
|
| 33863 | |
| 33859 | |
| 33857 | |
| 33849 | |
| 33842 | |
| 33835 | |
| 33830 | |
| 33828 | |
| 33807 | |
| 33797 | |
| 33796 | |
| 33791 | |
| 33786 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기