날자별로 검색 소스 있는 분 있나요??

· 20년 전 · 715 · 2
2005.2.1 ~ 2005.4.1 까지 이 날짜에 있는

목록만 볼게 할려고 합니다.
|

댓글 2개

$total_count = $row[0];

$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);
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
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
🐛 버그신고