안녕하세요 그누초보입니다.
포인트 조회시 (/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>
포인트 조회시 (/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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기