첨부파일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 힛트수를 수정하는 법 질문입니다~ 1 홍석주 2003.07.28 1616
1291 흠 .. 글을 쓴다는것...?? 1 베지타 2009.04.13 10846
1290 흑흑.. 도와주세요 ㅜ_ㅜ 2 신디 2003.02.20 4218
1289 훈민정음 아이콘 추가해 주세요... 마이홈 2005.04.23 1549
1288 회원정보록(주소록겸용) 스킨을 쓰고 있는데 3 file 김명숙 2004.12.23 940
1287 회원정보 수정시에... 1 freshwood 2005.02.04 2364
1286 회원정보 관련해서 질문 합니다. 나무 2004.11.14 852
1285 회원의 최근로그인 시각을 알 수 있는 방법에 대해 질문 드려도 될까요? 3 갠대류612 2005.06.20 3296
1284 회원아이콘변경 3 sunnie 2003.02.28 1919
1283 회원사진등록에 관한 질문입니다 1 열매 2005.08.10 5653
1282 회원가입폼에 헤드풋 넣는 방법은? 3 파인애플 2004.07.10 974
1281 회원가입이 갑자기 안되요 1 file 최기태 2004.11.09 805
1280 회원가입시 2 옹이 2005.09.02 4709
1279 회원가입 페이지로 돌리면 라이센스부분의 에러.. 1 시아 2004.10.07 850
1278 회원가입 전에 회원인증에 관한 질문인데여... 2 슈니마토 2004.09.30 808
1277 회원가입 스킨이요~^^ 1 ^^ 2003.10.15 1307
1276 황당 질문 ㅡㅡ; 3 알까 2005.07.03 3429
1275 홈피를 만들었는데 로그인을 해도 안되내여 꼭쩜 냉유~ 1 화야 2004.05.28 1015
1274 홈피 테두리 사이즈는 어케 조정하는지요? 2 정성희 2003.02.05 4244
1273 홈피 제작중..도와주세요....ㅜ.ㅜ(최근게시물 관련...) 3 박세봉 2005.08.25 4453
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 65 Next
/ 65