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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 33411 | |
| 33410 | |
| 33409 | |
| 33408 | |
| 33407 | |
| 33404 | |
| 33403 | |
| 33402 | |
| 33399 | |
| 33398 | |
| 33390 | |
| 33386 | |
| 33377 | |
| 33356 | |
| 33348 | |
| 33340 | |
| 33334 | |
| 33333 | |
| 33329 | |
| 33322 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기