<div><font color="rgb(191,191,191)">a값이 b 일때 cccc라는 소스가 나온다.<br /><? if($a == "b"){ ?><br />cccc<br /><?}?></font></div> <div><br /><font color="rgb(191,191,191)">(comment : == 는 두개가 같다는거고, != 은 다르다는거...)</font></div> <div><font color="rgb(191,191,191)"></font> </div> <div><br /><font color="rgb(191,191,191)">a 값이 b 일때 cccc가 나오고 a값이 b가 아니면 dddd가 나온다.<br /><? if($a == "b") { ?><br />cccc<br /><? } else { ?><br />dddd<br /><? } ?></font></div> <div><font color="rgb(191,191,191)"></font> </div> <div><br /><font color="rgb(191,191,191)">인클루드 소스<br /><? include_once $_SERVER['DOCUMENT_ROOT']."/inc/_footer.php"; ?></font></div> <div><font color="rgb(191,191,191)"></font> </div> <div><br /><font color="rgb(191,191,191)">값지정소스<br /><? <br />$folder="1";<br />$folder2="1";<br />$folder3="1";<br />$title="회사소개";<br />$title2="기업정보";<br />$title3="CEO인사말";<br />$pageNum="1";<br />$subNum="1";<br />$ChildNum="1";<br />include_once $_SERVER['DOCUMENT_ROOT']."/inc/_header.php"; ?></font></div> <div> </div> <div>막 이런식으로 php 소스 모아놓고 인클루드 할때 사용하거든요.</div> <div> </div> <div>이번에 궁금한게...</div> <div> </div> <div><font color="rgb(192,0,0)"><strong>a값이 있을때 (아무값이든 아무거나) b가 안나온다.</strong></font></div> <div>구문좀 알려주세요.ㅜㅜ</div> <div> </div> <div>프로그램 못하는데. 코딩하려니. 이런거 웹디가 알아야되네요...</div>
<img src="http://thimg.todayhumor.co.kr/upfile/201006/1276265052327_1.jpg">
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.