채택완료

모바일 게시판 연동 질문 (인덱스에)

<?
$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>
<?}?>
 
 
연결 에러가뜨는데 어디가 잘몬된 걸까요... 1.테이플이름은 porfollo 2.스킨이름은 gallery
|

답변 3개 / 댓글 2개

채택된 답변
+20 포인트

에러메세지는 어떤것인가요?

답변에 대한 댓글 1개

GET http://company.webnain.com/company/index.php?device=mobile 500 (Internal Server Error)
VM1712 index.php?device=mobile:1 입니다.

직접 작업하지 않았고, 어딘가에서 받은 소스를 그대로 사용했다면 1차적으로는 문제가 없을 것 같습니다.


다만 소스를 엄격하게 따져봤을때

환경에 따라 문제가 될 만한 부분은 아래와 같습니다.


Copy
<?, <?=, $row[wr_id], $row[wr_subject], $row[wr_datetime]

는

Copy
<?php, <?php echo , $row['wr_id'], $row['wr_subject'], $row['wr_datetime']

처럼 수정해주는 편이 좋습니다.

해당에러는 서버에서 에러가 난 후 클라이언트에서 판단하는 에러이구

본문에 언급하신 "연결 에러" 관련 메세지는 어떤것인가요?

DB, Server 관련 에러메세지가 아닌이상

500 Internal Server Error 로는 명확한 답을 찾기가 힘듭니다.

답변에 대한 댓글 1개

경고창은 저것만떠가지고 관련되어있느지 알았습니다. 그냥 문구가 틀렸는지 봐주세요 이미지를 불러와야하는데 불러오지를 못해서요

답변을 작성하려면 로그인이 필요합니다.