|
|
|
20년 전
|
조회 829
|
|
|
|
20년 전
|
조회 1,203
|
|
|
|
20년 전
|
조회 650
|
|
|
|
20년 전
|
조회 845
|
|
|
|
20년 전
|
조회 756
|
|
|
|
20년 전
|
조회 909
|
|
|
|
20년 전
|
조회 678
|
|
|
|
20년 전
|
조회 751
|
|
|
|
20년 전
|
조회 990
|
|
|
|
20년 전
|
조회 716
|
|
|
|
20년 전
|
조회 1,717
|
|
|
|
20년 전
|
조회 707
|
|
|
|
20년 전
|
조회 610
|
|
|
|
20년 전
|
조회 750
|
|
|
|
20년 전
|
조회 718
|
|
|
|
20년 전
|
조회 1,055
|
|
|
|
20년 전
|
조회 756
|
|
|
|
20년 전
|
조회 722
|
|
|
|
20년 전
|
조회 717
|
|
|
|
20년 전
|
조회 940
|
댓글 2개
$rows = 15;
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *
$sql_common
$sql_search
order by co_id desc
limit $from_record, $rows ";
$result = sql_query($sql);
기간 :
<input type='text' name='fr_date' size=10 value='<?=$fr_date?>' class=input>
-
<input type='text' name='to_date' size=10 value='<?=$to_date?>' class=input>
쿼리해주는 부분............
$sql_common = " from $cfg[table_count] ";
$sql_search = " where co_date between '$fr_date' and '$to_date' ";
$sql = " select count(*) $sql_common $sql_search ";
$row = sql_fetch($sql);