모바일 게시판 연동 질문 (인덱스에)
본문
<?
$sql="SELECT * FROM w5_write_portfolio where wr_reply = '' and wr_subject != '' order by wr_num limit 0,3";
$result=sql_query($sql);
for($i=0;$row=sql_fetch_array($result);$i++){
$thum_widht=320;
$thum_height=180;
$thumb = get_list_thumbnail("result", $row['wr_id'], $thum_widht, $thum_height);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
} else {
$img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
}
?>
<div>
<a href="<?=G5_URL?>/bbs/board.php?bo_table=portfolio&wr_id=<?=$row[wr_id]?>">
<div class="swiper-slide"><?=$img_content?>
<div class="mpfText">
<p class=""><?=conv_subject($row[wr_subject], 28, '..');?></p>
<span class=""><?=substr($row[wr_datetime],0,10)?> </span>
</div>
</div>
</a>
</div>
<?}?>
답변 3
에러메세지는 어떤것인가요?
해당에러는 서버에서 에러가 난 후 클라이언트에서 판단하는 에러이구
본문에 언급하신 "연결 에러" 관련 메세지는 어떤것인가요?
DB, Server 관련 에러메세지가 아닌이상
500 Internal Server Error 로는 명확한 답을 찾기가 힘듭니다.
직접 작업하지 않았고, 어딘가에서 받은 소스를 그대로 사용했다면 1차적으로는 문제가 없을 것 같습니다.
다만 소스를 엄격하게 따져봤을때
환경에 따라 문제가 될 만한 부분은 아래와 같습니다.
<?, <?=, $row[wr_id], $row[wr_subject], $row[wr_datetime]
는
<?php, <?php echo , $row['wr_id'], $row['wr_subject'], $row['wr_datetime']
처럼 수정해주는 편이 좋습니다.
!-->!-->
답변을 작성하시기 전에 로그인 해주세요.