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

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
아미나 멀티카테고리 스킨 글읽기 오류 해결방법 부탁드립니다-

QA

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

본문

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

 

에러문구

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

답변을 작성하시기 전에 로그인 해주세요.
전체 297
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT