테스트 사이트 - 개발 중인 베타 버전입니다

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

박한 7년 전 조회 1,864

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

 

에러문구

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

 

 

 

</p>

<p> */

function m_latest($bo_table,$category = null,$count = 10){</p>

<p>    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</p>

<p>

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

답변 1개

채택된 답변
+20 포인트
s
sinbi Expert
7년 전

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

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

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

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

로그인