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

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

 

에러문구

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

 

Copy
*/
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개

채택된 답변
+20 포인트

m_latest() 함수가 중복선언되었다는 오류입니다. 한쪽을 제거해보세요.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고