2026 년 4 월

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

 
그누스킨 그누소스 소스변경 소스문법 홈준비 기타
 
작성일 : 12-01-22 15:56
[수정] 인기 검색어 특수 문자 제외
 글쓴이 : Yemam (211.♡.235.69)
조회 : 7,485  
   http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=134747&sca=&sfl=wr… [2832]
lib > common.lib.php > get_sql_search 함수 // 인기검색어 $sql = " insert into $g4[popular_table] set pp_word = '$search_str', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]' "; sql_query($sql, FALSE); ==> $str = preg_replace('/[^0-9a-z가- [이 게시물은 morning님에 의해 2012-02-26 10:49:39 그누소스에서 이동 됨]

Yemam 12-01-22 16:18
 211.♡.235.69  
// 예 : 검색어가 영문,숫자,한글일 경우에만
if(preg_match('/^[0-9a-z\xA1-\xFE]+$/i', $search_str) == true)
{
        // 인기검색어
        $sql = " insert into $g4[popular_table] set pp_word = '$search_str', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]' ";
        sql_query($sql, FALSE);
}
Yemam 12-01-22 16:19
 211.♡.235.69  
lib > common.lib.php > get_sql_search 함수

// 인기검색어
$sql = " insert into $g4[popular_table] set pp_word = '$search_str', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]' ";
sql_query($sql, FALSE);

==>

$str = preg_replace('/[^0-9a-z가-
 
 

Total 3
번호 제   목 글쓴이 날짜 조회
3 [수정] 정렬에서 추가필더를 추가하기 Yemam 04-07 4542
2 [수정] 카테고리 선택 후 목록(날짜/조회/추천/비추… Yemam 04-07 5292
1 [수정] 인기 검색어 특수 문자 제외 (2) Yemam 01-22 7486

Therefore, holy brothers, who share in the heavenly calling,
fix your thoughts on Jesus, the apostle and high priest whom we confess.
Let us fix our eyes on Jesus, the author and perfecter of our faith,
who for the joy set before him endured the cross, scorning its shame,
and sat down at the right hand of the throne of God