묻고답하기

아래소스는 쇼핑몰에서 응용해서 가로출력이 되는데요..(지난번 질문)
그런데 이 소스를 넣고나면 페이지뷰를 생성을 못합니다...(제가 php에 대해 초자라서..)
고수님들께 부탁드립니다...
아래 보시면 max_line은 한페이지당 보여주는 갯수인데 현재 4개로 맞춰져 있거든요..한 20개로 보여지고
하단에 페이지뷰를 만들수 있게 소스를 어떻게 넣어야 하는지 알려주심 감사~~~~~




<?
//====================== 설정해주세요 =========================
$max_line = '4'; //한페이지당 보여질 갯수
$num_rows = '4'; //가로출력할 갯수
$width_per = (int)(141/$num_rows);

// 보여줄 페이지수 [이전] [1][2][3][4]....[8][9][10] [다음] 이런식으로...
$max_page = '10';

//======================= 설정 끝 =============================
if($city&&$country&&$theme&&$circum&&$stayclub_name){

                $res_count = mysql_num_rows(mysql_query("select city,country from zetyx_member_table where city like '%$city%' and country like '%$region%' and no>1 order by rand()"));
                $total_member = mysql_num_rows(mysql_query("select city,country from zetyx_member_table where city like '%$city%' andcountry like '%$region%' and no>1 order by rand()"));                        
}else{
        $res_count = mysql_num_rows(mysql_query("select city,country from zetyx_member_table where city like '%$city%' and country like '%$region%' and no>1 order by rand()"));
        $total_member = $res_count;
}
?>
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="677">
                                    <table border="0" cellpadding="5" cellspacing="2">
                                        <tr>
                                            <td width="663">
                                                <table border="0" cellpadding="3" cellspacing="1" width="100%">
                                                    <tr>
                                                        <td width="140" align="center">
                                                            <p><img src="images/myhome_icon2.gif" width="120" height="55" border="0"></p>
                                                        </td>
                                                        <td width="508" style="line-height:15px;">
                                                            <p>안녕하세요! 지역별검색서비스입니다.<br>지역별
                                                            상세한 업체를 찾아볼수
                                                            있는 지역검색서비스는
                                                            보다 빠른 검색을
                                                            할수 있습니다.<br>시/도를
                                                            클릭하시면 지역을
                                                            상세하게 접근을
                                                            하실수 있습니다.</p>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td height="1" bgcolor="#F3F1F1"></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="663" align=right>
                                                총 <font color=blue><b><?=$res_count?></b></font> 개의 업체가 검색되었습니다.
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
<?
$result = mysql_query("select * from zetyx_member_table where no>1 order by no desc limit 0, $i");
$rows = mysql_num_rows($result);
while($data = mysql_fetch_array($result)) {
if($data[picture]) { $picture_file = "<img src=".$data[picture]." border=1 width=140 height=95>"; }
else { $picture_file = "<img src=images/noimages.gif width=140 height=95 border=1>"; }

   $co++;
   $mod_co = $co%$num_rows;
   if($mod_co == "1") echo "<tr>";
   echo "<td width='$width_per%' bgcolor='#FFFFFF' align='center' valign='top'>";
$data[stayclub_name] = cut_str($data[stayclub_name],14);
$data[city] = cut_str($data[city],14);
?>
                                                            <table border="0" cellpadding="5" cellspacing="2" width="165">
                                                                <tr>
                                                                    <td>
                                                                        <table border="0" cellpadding="0" cellspacing="0" width="151">
                                                                            <tr>
                                                                                <td height="107" background="images/mbg3.gif" align="center">
                                                                                    <table border="0" cellpadding="0" cellspacing="0" width="94%">
                                                                                        <tr>
                                                                                            <td height="7"></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td height="97" align="center">
                                                                                                <a href="#"><?=$picture_file?></a>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <table border="0" cellpadding="3" cellspacing="1" width="100%">
                                                                            <tr>
                                                                                <td align="center">
                                                                                    <p><font color="#FC7A4B"><b><?=$data[stayclub_name]?></b></font></p>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td align="center">
                                                                                    <p>조회 : <?=number_format($data[hit])?>     펜션형</p>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
<?
   echo "</td>";
   if($mod_co == "0") {
      echo "</tr>";
   }
}

while($mod_co > 0) {
   $co++;
   $mod_co = $co%$num_rows;
   if($mod_co == "1") echo "<tr>";
   echo "<td width='$width_per%' bgcolor='#FFFFFF' align='center'> </td>";
   if($mod_co == "0") echo "</tr>";
}
?>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="663">하단 페이지뷰 자리</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
사자쭈꾸미 실시간 새글알림모듈II 사용시 글등록이 너무 오래 걸리네요.  
이피디 반응형웹에서의 이미지 중앙정렬 [2] 2014.07.24 by 이피디
논노디1 쪽지에 닉네임 안 뜨게 할 수 있나요? [4] 2014.07.24 by BJ람보
문화사랑 로그인 후 주소오류 [4] 2014.07.24 by Double'U'
플라이sinji 외부페이지에 게시판 전부를 불러들일수 있을까요?  
샤갈 게시판에 html 태그 사용할 수 있도록 설정하는 방법 궁금합니다. [6] 2014.07.24 by 샤갈
샤갈 확장 변수를 제목처럼 사용하는 방법  
NuRiEn 갤러리+해당글 모든 사진표시+반응형 3가지가 합친 위젯이 있을까요? [1] 2014.07.24 by 퍼니엑스이
마담케이 xe 1.7.5.3 업데이트 이후 게시글 등록이 안됩니다. [4] 2014.07.24 by 마담케이
Top밴드 웹페이지 오류 도와주세요. ㅠㅠ [4] file 2014.07.24 by Top밴드
Top밴드 스케치북 모바일 스킨 설정 문의입니다.  
CoffeeMix 닉네임16자까지만 허용된다는 오류때문에 회원가입이 안됩니다. [1] 2014.07.24 by CoffeeMix
shadowNo5 글 작성시에 파일 업로드가 안됩니다.. ㅠㅠ [3] 2014.07.23 by 더뿌
바슈랭1230 Access denied for user '--------'@'127.0.0.1' (using password: YES) [2] 2014.07.23 by 바슈랭1230
안엉어웅넌223 아이피 차단 구글봇  
오락실주인 404 Not Found 페이지 이미지변경 [4] file 2014.07.23 by XESniper
dskurrkdfdr74 게시판 목록 / 쓰기버튼에 박스형을 넣어주고싶어요 [1] file 2014.07.23 by WLIKR
줄루™ socialxe 페이스북 로그인이 되지 않네요. [9] 2014.07.23 by platoonk
채성욱441 모바일 로그인 안됩니다. [5] 2014.07.23 by 채성욱441
용초딩 @몽실아빠 헐.. 제가 게시글 삭제 한게 아니라 웹마스터에 올렸다고 삭제 당했네요.. 괜히 죄송하네요.. [2] 2014.07.23 by 용초딩
안드로이더스스 jwplayer 리퍼러모듈 애드온 충돌  
Sydneylove 회원목록 엑셀로 하는 방법 있나요?  
denphoto 홈페이지가 안열려요 [9] 2014.07.23 by denphoto
채성욱441 모바일에서만 로그인불가 입니다.  
빼꼼2 안녕하세요. 초보 XE 유저 입니다.ㅠ [1] 2014.07.23 by WLIKR
플라이sinji {$content} 로 게시판 불러오는 방법. [2] 2014.07.23 by 플라이sinji
Dorky 서브도메인 변경했더니 관리자 페이지가 에러가 나네요 [2] file 2014.07.23 by Dorky
빼꼼2 XE 싸이트 처럼 상단에 알림 기능 넣고 싶습니다.ㅁ [2] 2014.07.23 by 빼꼼2
플라이sinji 아이프레임으로 게시판 불러온뒤 문제입니다..  
판디노 특정 확장변수(다중선택)값을 포함한 게시물추출되는 게시판 (다시 질문드려용)