말러님 도와주세요 ㅠㅠ 정보
말러님 도와주세요 ㅠㅠ본문
아까 인기검색어 질문 했던 사람인데요.
왜이렇게 오류가 나나 했더만 작은따옴표가 몇개 없어서 알맞은 자리에 집어 넣어서
오류는 해겨랳ㅆ는데,
아무것도 뜨질 않습니다.
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 필드에 아이디가 남지 않네요.

댓글 전체


==>
고유값 index를 삭제하세요.

-->
$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]
로 바꾸세요.
