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>";
* ------------------------------------------------------------------------- *
}
{
?>
<? } ?>
위 구문에서 * ---- * 안에 있는 최신글을 불러오려는데 기초가 없다보니 도무지 -_-",
고수님의 도움을 요망합니다, 감사 합니다 !!
<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가 들어갈 순 없습니다.
보기 편하게 작업하실려면 <?= 를 뺄거 빼구 적당히 조절해서 사용하세요
<?=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
{
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>
<?
}
{
?>
<? } ?>
위 소스의 <? } 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>
<?
}
{
?>
<? } ?>
내린님, 행님, Ohora님..... 감사 드립니다 !!
올한해도 좋은 하루하루 되시길.......
올한해도 좋은 하루하루 되시길.......