오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://economyview.cafe24.com/index.php
$g4['title'] = '';
include_once('../global_head.php');
$sql_common = " reg_yn ='Y' ";
if ($nstx) {
$sql_search .= "and (title like '%$nstx%') and w " ;
$qstr .="&nstx=$nstx";
}
$sql = " select count(*) as cnt from $g4[news_table] where $sql_common $sql_search ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$page_cnt = $g4[page_cnt];
$total_page = ceil($total_count / $page_cnt);
if (!$page) $page = "1";
$from_record = ($page - 1) * $page_cnt;
$sql = " select * from $g4[news_table] where $sql_common $sql_search order by news_num desc limit $from_record, $page_cnt ";
$result = sql_query($sql);
//explain($sql);
$list = array();
$k = "0";
for ($idx=0; $row=sql_fetch_array($result); $idx++) {
$list[$idx] = $row;
$list[$idx][href] = "./view.php";
$list[$idx][num] = $total_count - ($page - 1) * $page_cnt - $k;
$k++;
}
if ($total_count > 1) $news_paging = get_news_paging($g4[paging_cnt], $page, $total_page, $_SERVER[PHP_SELF]."?page=", $qstr);
$news_skin_path = "$g4[path]/skin/news/page/basic";
include_once($news_skin_path."/search.skin.php");
지금 검색하니까 제목만 검색이 되네요 ㅜ.ㅜ
전체 검색 되게 할려며은 어떻게 해야하나요
고수님들 도와주세요 ㅠ.ㅠ
오류 주소 : http://economyview.cafe24.com/index.php
$g4['title'] = '';
include_once('../global_head.php');
$sql_common = " reg_yn ='Y' ";
if ($nstx) {
$sql_search .= "and (title like '%$nstx%') and w " ;
$qstr .="&nstx=$nstx";
}
$sql = " select count(*) as cnt from $g4[news_table] where $sql_common $sql_search ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$page_cnt = $g4[page_cnt];
$total_page = ceil($total_count / $page_cnt);
if (!$page) $page = "1";
$from_record = ($page - 1) * $page_cnt;
$sql = " select * from $g4[news_table] where $sql_common $sql_search order by news_num desc limit $from_record, $page_cnt ";
$result = sql_query($sql);
//explain($sql);
$list = array();
$k = "0";
for ($idx=0; $row=sql_fetch_array($result); $idx++) {
$list[$idx] = $row;
$list[$idx][href] = "./view.php";
$list[$idx][num] = $total_count - ($page - 1) * $page_cnt - $k;
$k++;
}
if ($total_count > 1) $news_paging = get_news_paging($g4[paging_cnt], $page, $total_page, $_SERVER[PHP_SELF]."?page=", $qstr);
$news_skin_path = "$g4[path]/skin/news/page/basic";
include_once($news_skin_path."/search.skin.php");
지금 검색하니까 제목만 검색이 되네요 ㅜ.ㅜ
전체 검색 되게 할려며은 어떻게 해야하나요
고수님들 도와주세요 ㅠ.ㅠ
댓글 6개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기