테스트 사이트 - 개발 중인 베타 버전입니다

포인트조회시 한번에 전부 출력하려면 어떻게 해야하나요?

· 11년 전 · 2146 · 2
안녕하세요 그누초보입니다.

포인트 조회시 (/bbs/point.php) 15개가 넘어가면 다음페이지로 되어있는데요
그냥 전부 한페이지에 출력하려면 어떻게 해야하나요?
전부가 안된다면 한페이지에 노출시킬수 있는 수를 정할수도 있나요?

고수님들이 답변 기다립니다^^




<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/include/sub_top.php");//상단
if (!$member[mb_id])
alert("회원만 조회하실 수 있습니다.");

$g4[title] = $member[mb_nick] . "님의 포인트 내역";
include_once("$g4[path]/head.sub.php");

$list = array();

$sql_common = " from $g4[point_table] where mb_id = '".mysql_real_escape_string($member[mb_id])."' ";


/********************************************************/
/* [월별검색] 월이 지정되어 있으면 월별 검색추가 */
/*******************************************************/
if($month>0) $sql_common .= " and month(po_datetime)= $month ";
if($year>0) $sql_common .= " and year(po_datetime)= $year ";

$sql_order = " order by po_id desc ";


$sql = " select count(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];

$rows = $config[cf_page_rows];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
?>



<table width='100%' cellpadding=3 cellspacing=0>
<tr><td height=45 align=center><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td></tr>
</table>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

$rows = $config[cf_page_rows];

$rows = 10000000000;
또는
$rows = $total_count;

로 해보세요.
11년 전
닥본사님 짱짱맨~

감사합니다^^

게시글 목록

번호 제목
284348
284336
284333
284332
284320
284318
284316
284313
284307
284306
284303
284298
284296
284290
284286
284280
284277
284272
284261
284259