묻고답하기

카운터와 최근게시물을 한페이지에 함께 나타내고 싶거둔요
그런데... 최근게시물소스를 넣으면 카운터가 안떠요...
함께 뜰수 있게 하려면 어떻게 수정해야 되는지....
알려주심 감사하겠습니다.. 제발.. ㅜ.ㅜ
-----------------------------------------------------------------

<? include "cgi/counter/dbconn.php3";
       include "cgi/counter/zerocounter.php3"; ?>




<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>☆☆ 루찌공간 ☆☆</title>
<meta name="generator" content="Namo WebEditor v5.0">
<link rel="stylesheet" href="style_about.css">
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" background="image/bg.gif" leftmargin="3" marginwidth="3" topmargin="3" marginheight="3">
<table align="center" cellpadding="0" cellspacing="0" width="507">
    <tr>
        <td width="507" colspan="3">
            <p><img src="image/index/top.jpg" width="507" height="147" border="0"></p>
        </td>
    </tr>
    <tr>
        <td width="507" background="image/bg.gif" colspan="3">
            <p align="center"><img src="image/menu_left.gif" width="47" height="15" border="0"><a href="index.htm"><img src="image/menu_1-1.gif" width="35" height="15" border="0"></a><a href="about.htm"><img src="image/menu_2-1.gif" width="38" height="15" border="0"></a><a href="portfolio.htm"><img src="image/menu_3-1.gif" width="66" height="15" border="0"></a><a href="webtip.htm"><img src="image/menu_4-1.gif" width="45" height="15" border="0"></a><a href="diary.htm"><img src="image/menu_5-1.gif" width="38" height="15" border="0"></a><a href="album.htm"><img src="image/menu_6-1.gif" width="42" height="15" border="0"></a><a href="links.htm"><img src="image/menu_7-1.gif" width="38" height="15" border="0"></a><a href="bbs.htm"><img src="image/menu_8-1.gif" width="28" height="15" border="0"></a><img src="image/menu_right.gif" width="48" height="15" border="0"></p>
        </td>
    </tr>
    <tr>
        <td width="41" background="image/bg.gif">
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
            <p> </p>
        </td>
        <td width="425" background="image/bg_main.gif" valign="top">

            <table cellpadding="0" cellspacing="0" width="425">
                <tr>
                    <td width="415" height="5">

         </td>
                </tr>
                <tr>
                    <td width="425">
                        <table align="center" cellpadding="0" cellspacing="0" width="400">
                            <tr>
                                <td width="400"><p align="left"><img src="image/index/titlebar_1.gif" width="155" height="24" border="0"></p>
                                </td>
                            </tr>
                            <tr>
                                <td width="400" class="ver9">                                    
                                    <table cellpadding="1" cellspacing="0" width="400">
                                        <tr>
                                            <td width="400">






<!--공지사항시작-->



<?
$connect=mysql_connect("localhost","ID","PW"); // MySQL DB에 접근
mysql_select_db("ID"); // 사용할 DB를 선택
?>
<?
$result=mysql_query("select * from zetyx_board_notice order by no desc limit 1");
?>

<?
while($data=mysql_fetch_array($result))
{
  $no=$data[no];
  $subject=stripslashes($data[subject]);
  $name=stripslashes($data[name]);
  $memo=stripslashes($data[memo]);
  $data=date("Y/m/d",$data[reg_date]);
  echo "<table align=center cellpadding=2 cellspacing=0>
    <tr>
        <td width=100%>
<p align='justify' style='margin-right:2mm; margin-left:2mm; line-height:150%;'><a href='http://rujji.eelee.net/zboard//zboard.php?id=notice' onfocus='this.blur()'><font size='2' color='black'><b>$subject</b></font></a>
        </td>
    </tr>
    <tr>
        <td width=100%>
<p align='justify' style='margin-right:2mm; margin-left:2mm; line-height:150%;'>$memo</p>
        </td>
    </tr>
    <tr>
        <td width=100%>
<p align='right' style='margin-right:2mm; margin-left:2mm; line-height:150%;'>$data</a>
        </td>
    </tr>
</table>
        ";
}
?>



<!--공지사항끝-->




</td>
                                        </tr>
                                        <tr>
                                            <td width="400">




<!--최근게시물시작-->





<?
$connect=mysql_connect("localhost","ID","PW"); // MySQL DB에 접근
mysql_select_db("ID"); // 사용할 DB를 선택
?>
<?
$result=mysql_query("select * from zetyx_board_notice order by no desc limit 5");
?>

<?
while($data=mysql_fetch_array($result))
{
$no=$data[no];
  $name=stripslashes($data[name]);
$data[subject] = stripslashes($data[subject]);
$max = 45; //이건 제목의 길이를 제안.. 그뒤는 .....  이걸로 나타납니다!!
$count = strlen($data[subject]);
if($count >= $max) {
for ($pos=$max;$pos>0 && ord($new[subject][$pos-1])>=127;$pos--);
if (($max-$pos)%2 == 0)
$data[subject] = substr($data[subject], 0, $max) . "...";
else
$data[subject] = substr($data[subject], 0, $max+1) . "...";
}
else {
$data[subject] = "$data[subject]";
}      
  echo "<table align=center cellpadding=2 cellspacing=0 width='400'>
    <tr>
        <td width=400>
[".stripslashes($data[name])."] <a href=http://rujji.eelee.net/board/view.php?id=notice&no=$no')>".stripslashes($data[subject])."
        </td>
    </tr>
    <tr>
        <td width=400 bgcolor=silver>
            <p></p>
        </td>
    </tr>
</table>
        ";
}
?>


<!--최근게시물끝-->




</td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
        <td width="41" background="image/bg.gif">
            <p> </p>
        </td>
    </tr>
    <tr>
        <td width="507" colspan="3">

            <table cellpadding="0" cellspacing="0" width="507">
                <tr>
                    <td width="42" rowspan="2">
                        <p><img src="image/copyright_left.jpg" width="42" height="94" border="0"></p>
                    </td>
                    <td width="423" height="31" background="image/copyright_top.jpg">
                        <p align="center"><font size="1" face="돋움" color="#CCCCCC"><b>





<!--카운터시작-->

Total : <? echo $count[total_hit]; ?>   Yesterday : <? echo $count[yesterday_hit]; ?>   Today : <? echo $count[today_hit]; ?>

<!--카운터끝-->






</b></font></p>
                    </td>
                    <td width="42" rowspan="2">
                        <p><img src="image/copyright_right.jpg" width="42" height="94" border="0"></p>
                    </td>
                </tr>
                <tr>
                    <td width="423" height="63">
                        <p align="center"><img src="image/copyright_bottom.jpg" width="423" height="63" border="0"></p>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</body>

</html>

------------------------------------------------------------------
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
팔공산 게시글 본문 아래 목록이 첫 목록만 나옵니다. [1] 2016.05.28 by 팔공산
DJKain 이용약관/개인정보취급방침 애드온 사용시 오류 문제 file  
DJKain door 가변형 레이아웃을 사용하는데요 갑자기백지현상이 생깁니다 [1] 2016.05.28 by DJKain
흑사탕 에디터가 보이지 않습니다 [2] 2016.05.28 by 흑사탕
하오 게시물이 수정되지 않습니다. [1] 2016.05.28 by sejin7940
김호띠 회원랭킹출력 및 FA아이콘 [4] 2016.05.28 by 김호띠
김호띠 사이드탭 [2] 2016.05.28 by 김호띠
펭구 [긴급]코어 업데이트 도와주세요.. [6] 2016.05.27 by SimpleCode
찬란하리 마이그레이션, 이름 모를 게시판의 글을 XE로 옮겨가기 [3] 2016.05.27 by SimpleCode
바오밥나무 게시판 비밀 체크, 글자 바꿀 수 있나요? [2] 2016.05.27 by 바오밥나무
바오밥나무 네이버 사이트등록 때문에 며칠째 헛발질 중입니다. [4] 2016.05.27 by 바오밥나무
hjkguy767 그누보드5 들여오기 마이그레이션 툴 나올려면 아직 멀었을까요? [4] 2016.05.27 by 기진곰
비틀즈 관리자만 ip주소로 로그인하게 하기 [5] 2016.05.27 by 라온넷닷컴
은우마스터 특정 메뉴 감추기 [1] 2016.05.27 by 라온넷닷컴
라디요 Xe 1.8.20 업데이트 내용 중에 [2] 2016.05.27 by 라디요
흑사탕 게시판을 들어가면 [5] 2016.05.27 by 라자루스
kjmedi626 관리자주소를 모르겠습니다...ㅠㅠ [4] 2016.05.27 by kjmedi626
거침없이드라이브 XE1.4에서 XE1.8로 업데이트 후 홈페이지 접속 불능 [1] 2016.05.27 by 로이조52
모두아네c127c mysql DB에 접속이 안됨으로 홈페이지에 로그인이 안됩니다. [1] file 2016.05.27 by 기진곰
맘스프라임 무료상담신청 핸드폰으로 알림오도록 하고 싶어요. [1] file 2016.05.27 by 기진곰
은빛늑대 코어 업데이트 후 에러메시지 [1] 2016.05.27 by 기진곰
댑펑 포인트를 db 상에서 업데이트 할 경우의 질문 [3] 2016.05.27 by 기진곰
초보자 NEW FAQ에서 본문 글이 쓰여지지 않는 문제가 있습니다. [1] 2016.05.27 by 감사하는마음이죠
라디요 400,404등의 에러 페이지 .htacess 두 개 가능한가요? [2] 2016.05.27 by 라디요
떨어진비누 에디터의 표 기능 오류 file  
맛깔닷컴 게시판은 하나씩 특정회원에게 나눠주고 관리자는 모든 게시판의 최근게시물 목록이 펼쳐진 화면에서 모든 게시판을 관리하는 방법? [3] 2016.05.27 by 배워서남준다
은빛늑대 Err : '' template file does not exists. 오류 [1] 2016.05.27 by 배워서남준다
inseo 태블릿.패드에서 댓글에 대댓글 입력할때 에디터 선택하기를 클릭하면 회원들 닉네임이 뜹니다.  
꽃민 지금 홈페이지가 난리가 났어요 ㅠㅠ 살려주세요 ㅠㅠ [3] file 2016.05.26 by GG
사과네개 Parse error: syntax error, unexpected T_FUNCTION in /home/hosting_users/daehwacon/www/config/func.inc.php on line 1203 이거 해결방법좀 부탁합니다. [1] 2016.05.26 by SimpleCode