말러님 도와주세요 ㅠㅠ

아까 인기검색어 질문 했던 사람인데요.

왜이렇게 오류가 나나 했더만 작은따옴표가 몇개 없어서 알맞은 자리에 집어 넣어서
오류는 해겨랳ㅆ는데,

아무것도 뜨질 않습니다.

http://www.zv.pe.kr/search_who.php

search_who.php ---------------------------------------------------------------
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/head.php");

$query = "select * from `$g4[popular_table]' where mb_id order by pp_id DESC";
while($row = sql_fetch_array($query)) {
  echo "$row[pp_word] - $row[mb_id]";
}

include_once("$g4[path]/tail.php");
include_once("$g4[path]/tail.sub.php");
?>
--------------------------------------------------------------------------------

bbs/search.php -----------------------------------------------------------------
        // $sql = " insert into $g4[popular_table] set pp_word = '$search_str', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]' ";
           $sql = " insert into $g4[popular_table] set pp_word = '$search_str', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]', mb_id = '$member[mb_id]' ";
        sql_query($sql, FALSE);
---------------------------------------------------------------------------------

mb_id 필드 생성했습니다.

mb_id varchar(20) utf8_general_ci

필드이름//종류         // Collation
mb_id // varchar(20) // utf8_general_ci
------------------------------------------------------------------------------------


어디가 문젤까요?ㅠㅜㅠ
mb_id varchar(20) utf8_general_ci 아니오 Browse distinct values 변경 삭제 기본 고유값 인덱스 Fulltext
mb_id varchar(20) utf8_general_ci 아니오 Browse distinct values 변경 삭제 기본 고유값 인덱스 Fulltext
mb_id varchar(20) utf8_general_ci 아니오 Browse distinct values 변경 삭제 기본 고유값 인덱스 Fulltext
mb_id varchar(20) utf8_general_ci 아니오 Browse distinct values 변경 삭제 기본 고유값 인덱스 Fulltext


#-----------------------------------------------------------------------------------

검색을 해도 db에는 mb_id 필드에 아이디가 남지 않네요.
|

댓글 7개

$query = "select * from {$g4[popular_table]} where mb_id order by pp_id DESC";
으허... 안뜨네요..
mb_id varchar(20) utf8_general_ci 아니오 Browse distinct values 변경 삭제 기본 고유값 인덱스 Fulltext

==>

고유값 index를 삭제하세요.
$query = "select * from `$g4[popular_table]' where mb_id order by pp_id DESC";
-->
$query = sql_query("select * from `$g4[popular_table]' where mb_id order by pp_id DESC");
혹시나 해서요.
`$g4[popular_table]'
==>
`$g4[popular_table]`
이거나
$g4[popular_table]
로 바꾸세요.
mb_id 필드에 id가 남지 않네요..
로그인 안하고 검색하면 mb_id가 남지 않겠죠
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 1,555
16년 전 조회 1,083
16년 전 조회 1,561
16년 전 조회 1,096
16년 전 조회 1,697
16년 전 조회 998
16년 전 조회 3,448
16년 전 조회 1,616
16년 전 조회 976
16년 전 조회 990
16년 전 조회 1,573
16년 전 조회 1,631
16년 전 조회 1,689
16년 전 조회 1,057
16년 전 조회 1,545
16년 전 조회 987
16년 전 조회 980
16년 전 조회 992
16년 전 조회 992
16년 전 조회 1,628