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

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

QA

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

본문

<?
$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

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

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

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

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'] 

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

답변을 작성하시기 전에 로그인 해주세요.
전체 5
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT