채택완료

썸네일 두번째가 안나와서 질문드려요 ㅠㅠ

2015-05-17 (일) 22:15:41 2,512

썸네일 두개 나오게 소스를 수정했습니다. 

근데 하단에 인크루드 시키면 두번째 이미지가 안나오는데 ㅠㅠ 왜 그러는지 도저히 모르겠어요 ㅠㅠ 

인크루드한 걸 빼면 잘나오는데 ㅠㅠ 

밑에는 인크루드 불러오는 페이지이구요.

Copy
<?phpif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가include_once(G5_LIB_PATH.'/thumbnail.lib.php');   // 선택옵션으로 인해 셀합치기가 가변적으로 변함$colspan = 4; if ($is_checkbox) $colspan++;if ($is_good) $colspan++;if ($is_nogood) $colspan++;?>  <?php include_once($board_skin_path.'/table.php');?> <?php include_once($board_skin_path.'/lib.php');?> <!-- 게시판 목록 시작 { --><div id="bo_list" class="shop_box">		<div class="shop_imgbox">		 <?php			for ($i=0; $i<count($list); $i++) {				if($list[$i]['wr_10'] == "Open") {         ?>				  <?php if ($is_checkbox) { ?>            <span class="td_chk">                <label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject'] ?></label>                <input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">            </span>          <?php } ?>			  		  			  <div class="shop_img">				<?php					$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], 572, 527);					if($thumb['src']) {						$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="568" height="527">';				 					} else {						$img_content = 'no_image';					}					echo $img_content;				?>						  </div>  			  <div class="shop_info">					 <p class="shop_txt01">						<?php						echo $list[$i]['icon_reply'];						if ($is_category && $list[$i]['ca_name']) {						 ?>						<a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>>						<?php } if($is_admin) { ?> 						  <a href="<?php echo G5_BBS_URL.'/write.php?w=u&bo_table='.$bo_table.'&wr_id='.$list[$i]['wr_id']; ?>">         							<b><?php echo $list[$i]['subject'] ?></b> <?php echo "</a>";  } ?> 						  </a>											  </p>					  <p class="shop_txt02"><?php echo$list[$i][wr_content] ?> </p>					  <p><span>판매가:</span><b><?php echo number_format($list[$i]['wr_1']) ?></b>원</p>					  <p><span>배송료:</span><?php echo number_format($list[$i]['wr_2']) ?>원</p>					  <p><span>제조국:</span><b><?php echo ($list[$i]['wr_3']) ?></b></p>					  <p><span>제조판매업자:</span><b><?php echo ($list[$i]['wr_4']) ?></b></p>					  <p><input type=button class="btn_b01" onclick="showHint(<?php echo $list[$i]['wr_id'] ?>)" value="장바구니 담기"></p>					<?php  } ?> 					<!-- <?php if (count($list) == 0) { echo '<p class="empty_table">게시물이 없습니다.</p>'; } ?> -->					<span><i class="fa fa-shopping-cart"></i>장바구니 내역</span>					<div class="cart_list">									<?php include_once($board_skin_path.'/ajax.php');?>					</div>				  </div>		</div>			<div class="shop_maincnt">			<?php				$thumb = get_list_thumbnail2($board['bo_table'], $list[$i]['wr_id'], 460, 460);				if($thumb['src']) {					$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="460" height="460">';				} else {					$img_content = 'no_image11';				}				echo $img_content;			?>		 </div>   </div>  <?php } ?>

인크루드시킨 파일입니다. (<?php include_once($board_skin_path.'/ajax.php');?>​ <- 요파일)

Copy
<div id="Action"><?$query5 = "select count(*) as cnt2 from g5_write_shop  where wr_name = '$member[mb_name]' and wr_10 = '구매대기'  ";$result5 = sql_query($query5);while($row  = sql_fetch_array($result5)) {		$product = $row[wr_subject]; 	$cnt2 = $row[cnt2];}  $i = 0;$query5 = "select * from g5_write_basket  where mb_id = '$member[mb_id]'  and wr_10 = '구매대기' ";$result5 = sql_query($query5);while($row  = sql_fetch_array($result5)) {		$product[$i] = $row[wr_subject]; 	$amount[$i] = $row[wr_3];	$price[$i] = $row[wr_1];	$delivery[$i] = $row[wr_2]; 	$del_status[$i] = $row[wr_4]; 	$date[$i] = $row[wr_datetime]; 	$id[$i] = $row[wr_9];  }?> <div class="table_ex" ><table><tr>	<td width="132">상품명</td>	<td width="150">구매수량</td>	<td width="130">구매가격</td>	<td>배송비</td>	<!-- <td>날짜</td> -->	<!-- <td>변경</td> --></tr><?$i = 0;$query5 = "select * from g5_write_basket  where mb_id = '$member[mb_id]'  and (wr_10 = '구매대기' or wr_10 = '결제확인')  ";$result5 = sql_query($query5);while($row  = sql_fetch_array($result5)) {		$product[$i] = $row[wr_subject]; 	$amount[$i] = $row[wr_3];	$price[$i] = $row[wr_1];	$delivery[$i] = $row[wr_2]; 	$del_status[$i] = $row[wr_8]; 	$date[$i] = $row[wr_datetime]; 	$id[$i] = $row[wr_9]; 	$confirm[$i] = $row[wr_10]; 	$i++;} $total_price = 0;$del_fee  = 0;for($i =0; $i < count($product); $i++) { if($amount[$i] != 0) { 	$total_price = $price[$i] + $total_price;	if($del_status[$i] == 0) $del_fee = $delivery[$i] + $del_fee;	$check = $confirm[$i]; 	?>	<tr>		<td><? echo $product[$i]?></td>		<td>			<p class="amount">			<span class="amount_txt"><? echo $amount[$i]?></span>			<span class="amount_btm">			<input type=button class="btn_b02" onclick="showHint21(<?php echo $id[$i] ?>)" value="▲" style="border-bottom:1px #ddd solid; padding-bottom:2px;"> 			<input type=button class="btn_b02" onclick="showHint2(<?php echo $id[$i] ?>)" value="▼">								</span>			</p>		</td>		<td><? echo number_format($price[$i])?>원</td>		<td><? echo $delivery[$i]?></td>		<!-- <td><? echo $date[$i]?></td> -->		<!-- <input type=button class="btn_b01" onclick="showHint3(<?php echo $id[$i] ?>)" value="주문취소"> -->		</tr></table> <? }	if($total_price != 0)  $del_fee = min($delivery) + $del_fee;	if($check == "구매대기") $check = "결제하기"; }?> <script language="javascript" type="text/javascript"><!--function popitup(url) {	newwindow=window.open(url,'name','height=400,width=500');	if (window.focus) {newwindow.focus()}	return false;} // --></script><table> <tr><td>총 결제액</td></tr><tr>	<td colspan=2 ><? echo number_format($total_price)?>원(배송료:<? echo $del_fee?>원)  </td>	</tr></table></div> <a class="btn_b03" href="<? echo $board_skin_url?>/checkout.html?total_price=<? echo $total_price?>&check=<? echo $check?>" onclick="return popitup('<? echo $board_skin_url?>/checkout.html?total_price=<? echo $total_price?>&check=<? echo $check?>')">결제하기</a>   </div>

 

도대체 왜 그러는건가요 ㅠㅠ 

|

답변 1개

채택된 답변
+20 포인트

그냥 봤을때는 어디가 문제인지 모르겠네요.. 

$board_skin_path.'/ajax.php' 이 파일 단독 실행했을 때 에러 없이 실행되는지 체크해보세요.

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