최신글 불러오기에서 질문입니다.

홈페이지내에 무료공익배너를 게제해줄려고 작업중인데요..^^...@

<?if (!$member[mb_id]) {
echo "<table align='center' valign='center' style='border-collapse:collapse;' cellspacing='0' width='99%' height='70'>
<tr>
<td width='2' rowspan='3' bgcolor='#E5E6E0'>
</td>
<td height='2' bgcolor='#E5E6E0'>
</td>
<td width='2' rowspan='3' bgcolor='#E5E6E0'>
</td>
</tr>
<tr>
<td align='center' valign='center'>
<?=latest ('M-mos' ,link_kong, 5,20);?>
무료공익랜덤배너<br>140*64
</td>
</tr>

<tr>
<td height='2' bgcolor='#E5E6E0'>
</td>
</tr>
</table>";
} else {
?>

---------------------------------------------------------------------------------------------------
위에 소스에서 최신글을 불러 볼 요량으로
<?=latest ('M-mos' ,link_kong, 5,20);?> <==이눔을삽입
앴는데요..먹히질않네요..

<? ?>안에
최신글을 불러오려면 어떻게 해야하는지요??..
|

댓글 3개

테스트는 안해봤습니다.

<?if (!$member[mb_id]) {
echo "<table align='center' valign='center' style='border-collapse:collapse;' cellspacing='0' width='99%' height='70'>
<tr>
<td width='2' rowspan='3' bgcolor='#E5E6E0'>
</td>
<td height='2' bgcolor='#E5E6E0'>
</td>
<td width='2' rowspan='3' bgcolor='#E5E6E0'>
</td>
</tr>
<tr>
<td align='center' valign='center'>
" . latest ('M-mos' ,link_kong, 5,20) . "
무료공익랜덤배너<br>140*64
</td>
</tr>

<tr>
<td height='2' bgcolor='#E5E6E0'>
</td>
</tr>
</table>";
} else {
?>
원본 : <?=latest ('M-mos' ,link_kong, 5,20);?>

보드명이 link_kong 처럼, '_(언더 바)'가 포함되면,
불러오지 못하는 경우가 있습니다.(php 버전 및 서버환경에 따름)

수정 : <?=latest ('M-mos' ,'link_kong', 5,20);?>
g6man님 맞습니다..덕분에 해결했습니다.
도움주신 나스카님도 감사드립니다..
당췌 안해본것을 하려니..^^;;...@

다시한번 두분 고맙습니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
20년 전 조회 2,034
20년 전 조회 1,421
20년 전 조회 1,315
20년 전 조회 1,505
20년 전 조회 1,131
20년 전 조회 1,654
20년 전 조회 1,273
20년 전 조회 1,324
20년 전 조회 2,197
20년 전 조회 1,650
20년 전 조회 1,348
20년 전 조회 1,329
20년 전 조회 1,289
20년 전 조회 1,639
20년 전 조회 1,258
20년 전 조회 1,473
20년 전 조회 1,446
20년 전 조회 1,456
20년 전 조회 1,320
20년 전 조회 1,345
🐛 버그신고