2026 년 4 월

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

 
그누스킨 그누소스 소스변경 소스문법 홈준비 기타
 
작성일 : 11-04-02 18:44
페이징하는 방법
 글쓴이 : Yemam (211.♡.235.69)
조회 : 3,232  
// 총 인원 수
$sql = " select count(*) as cnt from $g4[member_table] where mb_today_login like '$g4[time_ymd]%' and mb_id != '$config[cf_admin]' order by mb_today_login";
$cnt = sql_fetch($sql);


$total_count = $cnt[cnt];
$rows = 14;
$total_page  = ceil($total_count / $rows);
if ($page == "") { $page = 1; }
$from_record = ($page - 1) * $rows;

총인원수를 구한다음

$sql = " select mb_id, mb_name, mb_nick, mb_level, mb_email, mb_homepage, mb_today_login, mb_point from $g4[member_table] where SUBSTRING(mb_today_login,1,10) = '$g4[time_ymd]' and mb_level < '10' order by mb_today_login DESC
limit $from_record, $rows";

요렇게 한 다음에

마지막에

$page = get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&page=");
[이 게시물은 morning님에 의해 2012-02-26 10:55:04 그누소스에서 이동 됨]

 
 

Total 167
번호 제   목 글쓴이 날짜 조회
137 여분필드 wr_x 사용하는 여러가지 방법 Yemam 04-06 3203
136 여분필드 셀렉트 필수입력 Yemam 04-06 4140
135 필드추가를 간편하게 하는 방법 Yemam 04-05 5762
134 두개의 그룹에서 최신글뽑아오는 방법 Yemam 04-04 4005
133 페이징하는 방법 Yemam 04-02 3233
132 [수정] 인기 검색어 특수 문자 제외 (2) Yemam 01-22 7484
131 [문법] 원하는 날짜에서 특정아이디의 데이타를 내… Yemam 09-16 4732
130 [문법] for($i=0,$cnt=count($list);$i<$cnt;$i++) 사용방식 Yemam 09-15 4682
129 [문법] 그룹 카테고리 Yemam 09-15 4759
128 [문법] 링크 보드 카테고리 Yemam 09-15 4592
127 [문법] 카테고리 (9) Yemam 09-15 6270
126 [그누소스] 그누보드처럼 IP 를 ♡ 로 숨기기 (3) Yemam 09-12 4933
125 [그누소스] if($w=="u"){ Yemam 09-12 4778
124 [그누소스] 게시판 카테고리 셀렉트 박스 없이 뿌려주기 … Yemam 09-12 5748
123 [그누소스] 카테고리별 최신글 뽑아오기 (1) Yemam 09-12 6209
 1  2  3  4  5  6  7  8  9  10    

Therefore, holy brothers, who share in the heavenly calling,
fix your thoughts on Jesus, the apostle and high priest whom we confess.
Let us fix our eyes on Jesus, the author and perfecter of our faith,
who for the joy set before him endured the cross, scorning its shame,
and sat down at the right hand of the throne of God