최신글 질문이예요 > 그누3질답

그누3질답

최신글 질문이예요 정보

그누보드 최신글 질문이예요

본문

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

define("_DOCTYPE_", "DESIGN");

$html_title = "홈페이지";

include "./lib/latest.lib.php";

// &nbsp;최신글 시작
$sql = " select bo_table from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
// latest('', $row[bo_table], 5, 35);
echo "<p>";
}
// &nbsp;최신글 끝
?>

<table border="0" width="100%" cellpadding="0" cellspacing="4">
&nbsp;<tr>
&nbsp; &nbsp; &nbsp;<td width="30%" height="150">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<?=latest('basic',boord, 5, 30);?>
 &nbsp; &nbsp; &nbsp;</td>
&nbsp; &nbsp; &nbsp;<td width="30%" height="150">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<?=latest('basic',musigue, 5, 30);?>
 &nbsp; &nbsp; &nbsp;</td>
&nbsp;</tr>
&nbsp;<tr>
&nbsp; &nbsp; &nbsp;<td width="30%" height="150">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<?=latest('basic',diary, 5, 30);?>
 &nbsp; &nbsp; &nbsp;</td>
&nbsp; &nbsp; &nbsp;<td width="30%" height="150">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<?=latest('basic',photo, 5, 30);?>
 &nbsp; &nbsp; &nbsp;</td>
&nbsp;</tr>
</table>

ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

팀앤테크에서요 테스터님이 올려주신 소스를 고대로 복사해서  저렇게 메인을 했는데

Fatal error: Cannot redeclare latest() (previously declared in /home/kissyme/public_html/gnu3/lib/latest.lib.php:11) in /home/kissyme/public_html/gnu3/lib/latest.lib.php on line 70

이런 에러가 떠요 뭐가 잘못된거에요?
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로