file 폴더에 첨부파일은 있는데 안됩니다,.
<!-- 첨부파일 시작 { 추가함-->
<section id="bo_v_file">
<ul>
<?php
// 가변 파일 !$file_comment['file'][$k]['view'] 이미지를 걸러내는 함수 일단 제거 함.
for ($k=0; $k<count($file_comment['file']); $k++) {
if (isset($file_comment['file'][$k]['source']) && $file_comment['file'][$k]['source']) {
?>
<li>
<i class="fa fa-download" aria-hidden="true"></i>
<a href="<?php echo $file_comment['file'][$k]['href']; ?>" class="view_file_download">
<strong><?php echo $file_comment['file'][$k]['source'] ?></strong>
</a>
<?php echo $file_comment['file'][$k]['content'] ?> (<?php echo $file_comment['file'][$k]['size'] ?>)
<span class="bo_v_file_cnt" style="position: unset"><?php echo $file_comment['file'][$k]['download'] ?>회 다운로드 | DATE : <?php echo $file_comment['file'][$k]['datetime'] ?></span>
</li>
<?php
}
}
?>
</ul>
</section>
<!-- } 첨부파일 끝 -->
우측마우스 보기하니
<a href="" class="view_file_download">
<strong>123.txt</strong>
</a>
이렇구요
답변 2개 / 댓글 5개
$file_comment 변수가 값이 제대로 들어가 있는지 먼저 확인을 해보셔야할거 같습니다.
해당 소스만 가지고는 정확하게 알기 힘듭니다.
답변에 대한 댓글 1개
링크가 어디 증발한거 같은데.. 에러 로그 파악해야되요
답변에 대한 댓글 4개
그니까 디버깅 해서 확인해보세요
print_r2($file_comment);
답변을 작성하려면 로그인이 필요합니다.