이미지 보이게 하기
본문
이거 이미지 올리는 소스인데요
<div id="divFake">.....</div> 여기까지는 작동이되는데
뒷에
<?php if ($w == 'u' && file_exists($mb_1_path)) { ?>
<img src="<?php echo $mb_1_url ?>" alt="회원 사진" style="width: 500px; height :500px; ">
<input type="checkbox" name="del_mb_1" value="1" id="del_mb_1">
<?php } ?>
이거는 작동이 안되요.. 옆에 check box가 나와서 내가 지정한 이미지가 보여야하는데 그냥 아무것도 안보여요...
<tr>
<th scope="row"><label for="reg_mb_1">Image</label></th>
<td>
<div id="divFake" style="position:relative; left: 5px; width: 60px;height:40px; overflow:hidden;">
<input id="file" name="filea" type="file" style="font-size: 80px; position: absolute;right:0px;top:0px; opacity:0; filter: alpha(opacity=0);cursor: pointer;"/>
<img src="/board/mobile/skin/member/basic/img/1.jpg" style="width: 60px; height :40px; alt="찾아보기"/>
</div>
<?php if ($w == 'u' && file_exists($mb_1_path)) { ?>
<img src="<?php echo $mb_1_url ?>" alt="회원 사진" style="width: 500px; height :500px; ">
<input type="checkbox" name="del_mb_1" value="1" id="del_mb_1">
<label for="del_mb_1">삭제</label>
<?php } ?>
</td>
</th>
</tr>