묻고답하기


다음의 log5.php 화일을 아이프레임으로 삽입하면 잘 나오는데요,
제로보드 게시판에 Include하면 에러가 납니다.

You have an error in your SQL syntax near 'where no = '7' ' at line 1
이렇게 에러가 납니다.

어떻게 된거죠?

<?
// 라이브러리 함수 파일 인크루드
$zero_path=".";
        require "$zero_path/lib.php";

// DB 연결
        $connect=dbConn();

// 멤버정보 구하기
        $member=member_info();
        if(!$page&&!$status) $status=1;

// 그룹데이타 읽어오기;;
        $group_data=mysql_fetch_array(mysql_query("select * from $group_table where no='$member[group_no]'"));

// 검색어 처리;;
        if($keyword) {
                if(!$status) $s_que=" where user_id = '$keyword' or name = '$keyword' ";
        }

// 로그인 회원의 수
$temp2=mysql_fetch_array(mysql_query("select count(*) from $member_table $s_que"));
$total_member=$temp2[0];
$total_guest_connect = getNowConnector_num("$zero_path/data/now_connect.php");
// 전체회원수
        $temp=mysql_fetch_array(mysql_query("select count(*) from $member_table"));
        $total_member=$temp[0];

        if($status) {
                $_str = trim(zReadFile("$zero_path/data/now_member_connect.php"));
                if($_str) {
                        $_str = str_replace("<?/*","",$_str);
                        $_str = str_replace("*/?>","",$_str);
                        $_connector = explode(":",$_str);

                        $total = count($_connector);
                }
        } else $total=$total_member;
// 페이지 계산
        $page_num=100;
        $total_page=(int)(($total-1)/$page_num)+1; // 전체 페이지 구함

        if(!$page) $page=1;
        if($page>$total_page) $page=1; // 페이지가 전체 페이지보다 크면 페이지 번호 바꿈

        $start_num=($page-1)*$page_num; // 페이지 수에 따른 출력시 첫번째가 될 글의 번호 구함

// 데이타 뽑아오는 부분

// 오프라인 멤버
        if(!$status) {
                $que="select * from $member_table $s_que order by no desc limit $start_num,$page_num";
                $result=mysql_query($que) or Error(mysql_error());
// 온라인 멤버
        } else {
                $endnum = $start_num + $page_num;
                if($endnum>$total) $endnum=$total;
                unset($s_que);
                for($i=$start_num;$i<$endnum;$i++) {
                        $member_no = substr($_connector[$i],12);
                        if($s_que) $s_que .= " or no = '$member_no' "; else $s_que = " where no = '$member_no' ";
                }
                $que = "select * from $member_table $s_que";
                $result=mysql_query($que) or Error(mysql_error());

        }

// 화면에 출력

echo"<html><head><style>

@font-face {font-family:티티체; src:url(http://bageup.com/TTche/TTche.eot);}
body {font-family:티티체;font-size:9pt;line-height:160%;}
td {font-family:티티체;font-size:9pt;line-height:160%;}
a {font-family:티티체;color:black;font-size:9pt;text-decoration:none;}
a:hover {font-family:티티체;color:red;font-size:9pt;text-decoration:none;}

body {background-color:transparent}

</style>
<script language='javascript'>
window.setTimeout('window.location.reload()',300000); //10초마다 리플리쉬 시킨다 1000이 1초가 된다.
</script></head><body topmargin=0><center>";

echo"G: $total_guest_connect  ";   echo"M: $total ";  echo"T: $total_member <br>";

        $loop_number=$total-($page-1)*$page_num;
        while($data=mysql_fetch_array($result)) {
                $name=stripslashes($data[name]);
                $user_id=stripslashes($data[user_id]);

// 이름으로 출력시 주석 제거
              echo"<a title='$name 님께 쪽지보내기' href=javascript:void(window.open('./view_info.php?member_no=$data[no]','view_info','+ '+ 'width=400,height=510,toolbar=no,scrollbars=yes'))>$name</a> "; } echo" "; // MySQL 닫기 if($connect) mysql_close($connect); ?>
</center>
</body>
</html>

소스입니다
log5.php의..
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
박진국 [질문]제로카운터 설치 사용법  
채혁 프레임 질문 입니다.  
혈흔 벅스뮤직이나 맥스에 서요; [1] 2007.08.10
박선영 이미지맵사용된 이미지에 마우스오버시 이미지바뀌는 팁을 아시는분.. T^T  
명태호 인쿨루드에 질문. [2] 2007.08.10
정호석 제로보드 스킨중에 발생한 css설정 질문입니다. [1] 2007.08.10
레드 메모장이 이상(?)해요 [3] 2007.08.10
김태진 질문이요! 이런효과는 어떠케 나타내는지 질문이여. [3] file 2007.08.10
새신랑 [re] 4가지 질문입니당  
토깽이=Zeno™ 4가지 질문입니당 [1] 2007.08.10
이명주 embed src 가 안먹힙니다 [1] 2007.08.10
k_교주 XML에 대해 이것 저것 듣고싶습니다. [1] 2007.08.10
gamja 검색후 문자열치환 [급] 고수님 도움요청 [1] 2007.08.10
후리 [PHP] 예전에 PHP 부분에 비혼님의 강의 있었잖아요.. 우편번호 db없이 검색하는거 말인데요.. [1] 2007.08.10
lovetea 미리보기 기능에 대해서인데요.. [1] 2007.08.10
양윤식 포토샵에서요 저장하면 자꾸 깨져서욤 -_-;;; 답변좀.. [3] 2007.08.10
레드 어떻게 하죠?? [1] 2007.08.10
새벽무렵 익스플로러에서 주소를 지워도 남는건..? [2] 2007.08.10
└(`ε´)┘ 간단한 질문~! [1] 2007.08.10
후니~* 이 소스 어디가 잘못됐는지 좀 봐주세요. [1] 2007.08.10
Clara Kim include error 도와주세요 !!! [2] 2007.08.10
ⓒandy쏘민★ 소스올려요! [1] 2007.08.10
flowermiso 정말 정말 궁금하고..해결해야 할 것인데요.-,.-;; [1] 2007.08.10
윤준봉 홈페이지 로딩 ...?? [1] 2007.08.10
김재원 쇼핑몰 프로그램 작성시 물건값을 소숫점 2자리까지 하려면 어떻게 해야 되나요?? [3] 2007.08.10
명태호 인쿨루드 다시 질문~ [1] 2007.08.10
이명주 ★ embed src 가 안먹힙니다 해결 방법 아무도 모르나요??  
이민우 쇼핑몰엣 결제시스템연동 해주실분요...  
샤갈 제로보드 게시판과 html문서를 함께 링크걸고자 할때?  
Abv_hevn NZEO 채널 흉내내기 에서요..