아미나 멀티카테고리 스킨 글읽기 오류 해결방법 부탁드립니다-

아미나 멀티카테고리 스킨 글읽기 오류 해결방법 부탁드립니다-

QA

아미나 멀티카테고리 스킨 글읽기 오류 해결방법 부탁드립니다-

답변 1

본문

글읽기시 에러가 납니다..

 

에러문구

Fatal error: Cannot redeclare m_latest() (previously declared in /home/studytogether/html/skin/multi_category/lib.php:13) in /home/studytogether/html/skin/multi_category/lib.php on line 37

 

 

2040662221_1540948745.7849.png

 


 */
function m_latest($bo_table,$category = null,$count = 10){
    global $g5;
    //$sql = "SELECT * FROM ".$g5['table_prefix'].'write_'. $bo_table;
    $sql = "SELECT * FROM ".g5_board.'write_'. $bo_table;
    $sql .= " WHERE wr_is_comment=0 AND ";
    if($category){ㅜ
        $where = array();
        foreach(explode(',',$category) as $c){
            $c = mysql_real_escape_string($c);
            $where[] = " ca_name LIKE '$c%'";
        }
        if($where){
            $sql .="(".join( " OR ",$where).' )';
        }
    }
    $sql .=" ORDER BY wr_num  LIMIT 0,". (int) $count;
    $result = mysql_query($sql);
    $rows = array();
    while($row=mysql_fetch_assoc($result)){
        $rows[] = $row;
    }
    print_r(mysql_error());
    r

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 306
© SIRSOFT
현재 페이지 제일 처음으로