if 문 도움요망 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

if 문 도움요망 정보

if 문 도움요망

본문

<? if ($gr_id == 'community') { ?>
<div align=center style="margin:0px auto 0; padding-top:6px; width:1004px; background:url(/img/bg/footer-m-wood.png) no-repeat; background-color:#171718; height:265px; "><?=latest("timeline", "family_gallery", 16, 40); //훼밀리포토  ?></div>
<div style='height:4px;  width:<?=$table_width?>px; background:url(/deco/stripe.jpg); clear:both;'></div>

<? } else if ($gr_id == 'study') { ?>
<div align=center style="padding-top:6px; width:1004px; background:url(/img/bg/footer-m-wood.png) no-repeat; background-color:#171718; height:265px; "><?=latest("timeline", "web_template", 16, 40); // 해드라인 ?></div>


<? } else
{
 echo "<div style="margin:0px auto 0; width:864px; background:url(/img/bg/footer-m-wood.png) no-repeat; background-color:#171718; height:255px; padding-left:140px;">
* ------------------------------------------------------------------------- *
echo "<table width='440'>
<tr><td><?=latest('desginonex_gallery', 'movie', 6, 50); // 해드라인 ?></td></tr></table>
</div>";
echo "<div style='height:4px;  width:<?=$table_width?>px; background:url(/deco/stripe.jpg); clear:both;'></div>";
* ------------------------------------------------------------------------- *
}
{
?>
<? } ?>

위 구문에서 * ---- * 안에 있는 최신글을 불러오려는데 기초가 없다보니 도무지 -_-",
고수님의 도움을 요망합니다, 감사 합니다 !!

댓글 전체

echo "<table width='440'><tr><td>";?>

<?=latest('desginonex_gallery', 'movie', 6, 50); // 해드라인 ?>

echo "</td></tr></table></div><div style='height:4px;  width:";

<?=$table_width?>

echo "px; background:url(/deco/stripe.jpg); clear:both;'></div>";

알기 쉽게 정리했습니다. 요약하자면 <?= 라는 말이 echo랑 같은 말이라는 거죠.
echo 안에 echo가 들어갈 순 없습니다.

보기 편하게 작업하실려면 <?= 를 뺄거 빼구 적당히 조절해서 사용하세요
끝부분이 도무지 정리가 않되네요,

손에 쥐어줘도 헤메이니 좀 챙피합니다.
다시 한번 부탁드립니다.

<? } else
{
 echo " <div style='margin:0px auto 0; width:864px; background:url(/img/bg/footer-m-wood.png) no-repeat; background-color:#171718; height:255px; padding-left:140px;'>";
echo "<table width='440'><tr><td>";?>
<?=latest('desginonex_gallery', 'movie', 6, 50); // 해드라인 ?>
echo "</td></tr></table></div><div style='height:4px;  width:";
<?=$table_width?>
echo "px; background:url(/deco/stripe.jpg); clear:both;'></div>";
}
{
<? } ?>
-------------------------------------------------------------
참조 할곳/하단 : http://smartwel.com/bbs/group.php?gr_id=study
않되는 곳/하단 : http://smartwel.com/index.php 
감사 합니다 !!
잘 이해가 않되신다면 그냥 아래와 같이 사용하세요.
위 소스의 <? } else 아래 부분을 아래 소스로 바꿔 주세요.
바꿔서 된다고 그냥 넘어가지 마시고 한번 무엇이 달라 졌는지 꼼꼼히 봐두세요.
그래야 다음에 똑 같은 상황에서 대처 하실 수 있습니다.

<? } else
{ ?>
<div style="margin:0px auto 0; width:864px; background:url(/img/bg/footer-m-wood.png) no-repeat; background-color:#171718; height:255px; padding-left:140px;">
<table width='440'>
<tr><td><?=latest('desginonex_gallery', 'movie', 6, 50); // 해드라인 ?></td></tr></table>
</div>
<div style='height:4px;  width:<?=$table_width?>px; background:url(/deco/stripe.jpg); clear:both;'>
</div>
<?
}
{
?>
<? } ?>
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT