도와주세요 서버이전을 했는데 ㅠㅠ
전에 쓰던게 외국서버에서 국내계정으로 오는데 텔넷도 안대고 PHP어드민도 설치가 안대서
국내옮길서버에 셋팅하고 디비는 포기하고 수정해논PHP파일 몇개 옮겼습니다.
근데 최근게시물추출스킨이 말썽이네요
메인에 최근게시물 추출하면Parse error: syntax error, unexpected ';' in C:\jaaaj\users\hongkin0220\www\skin\latest\vozzang\latest.skin.php on line 45
이렇게 떠요 latest.skin.php파일안에 소스는
이렇게 떠요 latest.skin.php파일안에 소스는
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td width="35" height="25" background="<?=$latest_skin_path?>/img/bg_01.gif"></td>
<td background="<?=$latest_skin_path?>/img/bg_02.gif">
<font style="font-size:9pt; font-color:#009426;"><b><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></b>
</td>
<td width="12" height="25" background="<?=$latest_skin_path?>/img/bg_03.gif"></td>
</tr>
</table>
<tr><td width="35" height="25" background="<?=$latest_skin_path?>/img/bg_01.gif"></td>
<td background="<?=$latest_skin_path?>/img/bg_02.gif">
<font style="font-size:9pt; font-color:#009426;"><b><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></b>
</td>
<td width="12" height="25" background="<?=$latest_skin_path?>/img/bg_03.gif"></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 style="table-layout: fixed;">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align=center>
<table width=95% style="table-layout: fixed;">
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<nobr>
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#FF4200;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
echo "</a>";
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align=center>
<table width=95% style="table-layout: fixed;">
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<nobr>
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#FF4200;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span></a>";
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
?>
</nobr>
</td></tr>
</table></td>
</tr>
</tr>
<tr><td height=1 background="<?=//$latest_skin_path?>/img/dot.gif"></td></tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
이겁니다. 45번째줄이
이겁니다. 45번째줄이
<tr><td height=1 background="<?=//$latest_skin_path?>/img/dot.gif"></td></tr>
이거에요. 전에 쓰던거 그대로 가져온건데...
이거에요. 전에 쓰던거 그대로 가져온건데...
왜 다 갠찮은데 이노무거에서 에러가 나는지 ㅠㅠ 방법좀알려주셔요 ㅠㅠ
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 2개
1. <nobr>
<?
echo $list[$i][icon_reply] . " ";
이부분을
<nobr>
<?
echo "$list[$i][icon_reply] ";
로 수정해 주시구요.
2. 45번째
<tr><td height=1 background="<?=//$latest_skin_path?>/img/dot.gif"></td></tr> 를
<tr><td height=1 background="<?=$latest_skin_path?>/img/dot.gif"></td></tr>로 수정
이렇게 해 보세요.