|
|
|
20년 전
|
조회 862
|
|
|
|
20년 전
|
조회 1,228
|
|
|
|
20년 전
|
조회 690
|
|
|
|
20년 전
|
조회 873
|
|
|
|
20년 전
|
조회 782
|
|
|
|
20년 전
|
조회 932
|
|
|
|
20년 전
|
조회 709
|
|
|
|
20년 전
|
조회 785
|
|
|
|
20년 전
|
조회 1,015
|
|
|
|
20년 전
|
조회 752
|
|
|
|
20년 전
|
조회 1,743
|
|
|
|
20년 전
|
조회 731
|
|
|
|
20년 전
|
조회 637
|
|
|
|
20년 전
|
조회 769
|
|
|
|
20년 전
|
조회 745
|
|
|
|
20년 전
|
조회 1,080
|
|
|
|
20년 전
|
조회 796
|
|
|
|
20년 전
|
조회 754
|
|
|
|
20년 전
|
조회 753
|
|
|
|
20년 전
|
조회 962
|
댓글 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);