아래 소스를 최근글에 적용하면 제목만 나오는데..

이것을 좀 자세하게 하고 싶어서요
제목 : ['subject']
본문 : ['wr_3']
설교자 : ['wr_4']
설교일자 : ['wr_5']
아래 소스를 어떻게 수정해야 할까요?
제가 디자이너다 보니 프로쪽이 약해서 이런 질문도 드리네요 ㅠ.ㅠ
Copy
//echo $list[$i]['icon_reply']." "; echo "<a href=\"".$list[$i]['href']."\">"; if ($list[$i]['is_notice']) echo "<strong>".$list[$i]['subject']."</strong>"; else echo $list[$i]['subject']; if ($list[$i]['comment_cnt']) echo $list[$i]['comment_cnt']; echo "</a>";
|
답변 4개 / 댓글 2개
채택된 답변
+20 포인트
Copy
이렇게 하시면 됩니다.
echo "설명 : <a href=\"".$list[$i]['href']."\">";
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject'];
if ($list[$i]['comment_cnt'])
echo $list[$i]['comment_cnt'];
echo "</a>";
echo "본문 : ".$list[$i]['wr_3']."<br>";
echo "설교일 : ".$list[$i]['wr_4']."<br>";
echo "설교일자 : ".$list[$i]['wr_5']."<br>";
//조건문 적용일때
//본문이 존재할시 출력
echo "설명 : <a href=\"".$list[$i]['href']."\">";
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject'];
if ($list[$i]['comment_cnt'])
echo $list[$i]['comment_cnt'];
echo "</a>";
if ($list[$i]['wr_3']) {
echo "본문 : ".$list[$i]['wr_3']."<br>";
}
//설교일 존재할시 출력
if ($list[$i]['wr_4']) {
echo "설교일 : ".$list[$i]['wr_4']."<br>";
}
//설교일자가 존재할시 출력
if ($list[$i]['wr_5']) {
echo "설교일자 : ".$list[$i]['wr_5']."<br>";
}
프로 쪽으로 넘어오지 마세요. ^^;
링크는 어떤식으로 거실 생각인가요?
제목만... 아님 전체... ???
답변을 작성하려면 로그인이 필요합니다.