카테고리
자주찾기
이글루 파인더
태그
character-set
드라이버
인코딩
xampp
linux
flv
큐브
utf8
Ubuntu7.10
web
wifi
Sis760
apache
safari
phpmyadmin
여러분이거다거짓말인거아시죠
모질라커뮤니티연말모임
뿌뿌뿡
eclipse
JDBC
JFace
mysql5
최근 등록된 덧글
최근 등록된 트랙백
Free nokia ringtones.
by Ringtones.
Instant payday loan.
by Payday loan.
Instant payday loan.
by Payday loan.
by Ringtones.
Instant payday loan.
by Payday loan.
Instant payday loan.
by Payday loan.
* Set the variable through Querystring
- page : 현재 page
* Set default variables
- list_size : 한번에 보여줄 list의 개수
- page_size : 한번에 보여줄 page의 개수
* Get variables from DB
- total_list_count : 전체 항목 개수
* Calculate variables to use the List
- total_page_count : total_list_count / list_size (if total_list_count % list_size is not zero then plus 1)
- page_start : ((page - 1) / page_size) * page_size + 1
- page_end : (page_start - 1) + page_size (if page is same as page_size then page_end is total_page_count)
* example code
for (i = 0 ; i < list_size ; i++) {
read data from DB ;
if fail to read data then
break ;
show list item
}
for (i = page_start ; i <= page_end ; i++) {
print i ;
}
- 내가 왜 영어로 적었을까? -_-; 콩글리쉬 쟁이
- page : 현재 page
* Set default variables
- list_size : 한번에 보여줄 list의 개수
- page_size : 한번에 보여줄 page의 개수
* Get variables from DB
- total_list_count : 전체 항목 개수
* Calculate variables to use the List
- total_page_count : total_list_count / list_size (if total_list_count % list_size is not zero then plus 1)
- page_start : ((page - 1) / page_size) * page_size + 1
- page_end : (page_start - 1) + page_size (if page is same as page_size then page_end is total_page_count)
* example code
for (i = 0 ; i < list_size ; i++) {
read data from DB ;
if fail to read data then
break ;
show list item
}
for (i = page_start ; i <= page_end ; i++) {
print i ;
}
- 내가 왜 영어로 적었을까? -_-; 콩글리쉬 쟁이



