첨부파일10개 늘리기 따라하다 오류...

2004.06.15
대류님이 nzeo에 쓴 내용처럼 따라 했습니다.
다 이상없이 잘 되다가..
글쓰기 들어가서 사진 올리고 완료를 누르면 다음과 같이 오류메세지가 뜹니다.
아무리 수정해도 안되네요..
도와주세요..
--오류메세지---
Parse error: parse error in /home/chunjiram/bbs/write_ok.php on line 765

============================================
765째줄  관련사항입니다.
============================================

$del_que1 $del_que2 $del_que3 $del_que4 $del_que5 $del_que6 $del_que7 $del_que8 $del_que9 $del_que10 division='$division',headnum='$headnum',prev_no='$prev_no',next_no='$next_no',child='$child',depth='$depth',arrangenum='$arrangenum',father='$father',name='$name',email='$email',homepage='$homepage',subject='$subject',memo='$memo',sitelink1='$sitelink1',sitelink2='$sitelink2',use_html='$use_html',reply_mail='$reply_mail',is_secret='$is_secret',category='$category' $del_que1 $del_que2 $del_que3 $del_que4 $del_que5 $del_que6 $del_que7 $del_que8 $del_que9 $del_que10 where no='$no'") or error(mysql_error());

===============================================
혼동될 수 있어 765째 줄 기준으로 상하 소스를 올립니다.
===============================================
// 일반글 -> 공지
                elseif($notice&&$s_data[headnum]>-2000000000) {
                        $temp=mysql_fetch_array(mysql_query("select max(division) from $t_division"."_$id"));
                        $max_division=$temp[0];
                        $temp=mysql_fetch_array(mysql_query("select max(division) from $t_division"."_$id where num>0 and division!='$max_division'"));
                        if(!$temp[0]) $second_division=0; else $second_division=$temp[0];

                        $max_headnum=mysql_fetch_array(mysql_query("select min(headnum) from $t_board"."_$id where division='$max_division' or division='$second_division'"));  // 최고글을 구함;;
                        $headnum=$max_headnum[0]-1;
                        if($headnum>-2000000000) $headnum=-2000000000; // 최고 headnum이 공지가 아니면 현재 글에 공지를 넣음;

                        $next_data=mysql_fetch_array(mysql_query("select no,headnum,division from $t_board"."_$id where (division='$max_division' or division='$second_division') and headnum='$max_headnum[0]' and arrangenum='0'"));
                        if(!$next_data[0]) $next_data[0]="0";
                        $next_no=$next_data[0];
                        $prev_no=0;
                        $child="0";
                        $depth="0";
                        $arrangenum="0";
                        $father="0";
                        minus_division($s_data[division]);
                        $division=add_division();
                        $del_que1 $del_que2 $del_que3 $del_que4 $del_que5 $del_que6 $del_que7 $del_que8 $del_que9 $del_que10 division='$division',headnum='$headnum',prev_no='$prev_no',next_no='$next_no',child='$child',depth='$depth',arrangenum='$arrangenum',father='$father',name='$name',email='$email',homepage='$homepage',subject='$subject',memo='$memo',sitelink1='$sitelink1',sitelink2='$sitelink2',use_html='$use_html',reply_mail='$reply_mail',is_secret='$is_secret',category='$category' $del_que1 $del_que2 $del_que3 $del_que4 $del_que5 $del_que6 $del_que7 $del_que8 $del_que9 $del_que10 where no='$no'") or error(mysql_error());
                        if($s_data[father]) mysql_query("update $t_board"."_$id set child='$s_data[child]' where no='$s_data[father]'"); // 답글이었으면 원본글의 답글을 현재글의 답글로 대체
                        if($s_data[child]) mysql_query("update $t_board"."_$id set depth=depth-1,father='$s_data[father]' where no='$s_data[child]'"); // 답글이 있으면 현재글의 위치로;;

                        // 원래 다음글로 이글을 가지고 있었던 데이타의 prev_no을 바꿈;
                        $temp=mysql_fetch_array(mysql_query("select max(headnum) from $t_board"."_$id where headnum<='$s_data[headnum]'"));
                        $temp=mysql_fetch_array(mysql_query("select no from $t_board"."_$id where headnum='$temp[0]' and depth='0'"));
                        mysql_query("update $t_board"."_$id set prev_no='$temp[no]' where prev_no='$s_data[no]'");

                        mysql_query("update $t_board"."_$id set next_no='$s_data[next_no]' where next_no='$s_data[no]'");

                        mysql_query("update $t_board"."_$id set prev_no='$no' where prev_no='0' and no!='$no'") or error(mysql_error()); // 다음글의 이전글을 설정
                        mysql_query("update $t_category"."_$id set num=num-1 where no='$s_data[category]'",$connect);
                        mysql_query("update $t_category"."_$id set num=num+1 where no='$category'",$connect);


  • 대류 2004.06.15 22:12
    이 팁의 첫 글을 보시면 아시겠지만, 이 팁과 관련한 질문은 받지 않습니다.
    http://daerew.zetyx.net 을 참고하시고, 차근차근 잘 적용하시면 잘 됩니다.
    개인마다 환경이 틀리므로 몇 몇 분은 저도 해결할 수 없는 오류를 만날 수도 있겠지만, 그런 하나하나를 제가 다 분석할 수는 없는 노릇이지요.... 님과 같은 오류메세지가 뜨더라도 반드시 그 부분에 문제가 있는 것이 아니라 다른 파일수정 부분에서 문제로 인해 뜨는 오류일수도 있습니다.

    원인을 정확히 찾기도 힘들고 따라서 답변을 하기도 힘듭니다.
    다시 한 번, 두 번 세 번 해보시라는 말 밖에는 드리지 못하겠네요...

    그리고 워낙에 수정하는 파일들이 많은 탓에

List of Articles
번호 제목 글쓴이 날짜 조회 수
1292 질문이있는데요... Sverd 2003.01.24 6721
1291 안녕하세혀? ^0^;; 음악태그에 관해서..(인사차질문 ^^) 2 rulrulara 2003.01.24 6603
1290 안녕하세요... 홍석만 2003.01.24 6590
1289 근데요..... 1 홍석만 2003.01.24 4894
1288 저기요.... 정혜린 2003.01.25 4941
1287 이미지 저장을 완벽하게 막는 방법은 없을까요 ? 1 박제현 2003.01.31 4726
1286 안녕하세요~^^ 1 이옥현 2003.02.03 6765
1285 홈피 테두리 사이즈는 어케 조정하는지요? 2 정성희 2003.02.05 4244
1284 wo.to 같은 주소 짧게 해주는곳 중에 2 루팡30 2003.02.06 3255
1283 넘 간단한 질문인가..ㅡㅡ;게시판에 관해.. 1 팔콘213 2003.02.07 2884
1282 최근게시물... 2 yjylove 2003.02.08 2935
1281 최근게시물에 관한 질문입니다~!! 제발 필독!! 2 『PDS.K』 2003.02.09 3380
1280 게시판넣을때 .. 3 오유 2003.02.09 3003
1279 스킨질문~ 1 물고기 2003.02.10 2269
1278 도와주세요..최근게시물.. 2 yjylove 2003.02.11 2742
1277 최근게시물 제목 질문 ! 꼭 좀 ~ 1 아짱이 2003.02.11 2239
1276 최근 게시물 스킨에서 날짜 모양 바꾸는 법 좀 알려주세요 1 이덕수 2003.02.14 2224
1275 나모에 클립아트가 없어요(-_-;;) 1 우라누스03 2003.02.19 2041
1274 노프레임첫페이지에서 일반게시물 출력 -_-;; 2 하종근 2003.02.19 14
1273 최근게시물때문에요. 2 음.. 2003.02.19 2006
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 65 Next
/ 65