아미나 멀티카테고리 스킨 글읽기 오류 해결방법 부탁드립니다-
본문
글읽기시 에러가 납니다..
에러문구
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
*/
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
답변을 작성하시기 전에 로그인 해주세요.