영카트5 제품 상세 페이지에

영카트5 제품 상세 페이지에

QA

영카트5 제품 상세 페이지에

답변 2

본문

제품의 상세페이지에서

해당 제품의 2차분류가 있다면

그 2차분류의 설정에서 "ca_mobile_head_html" 의 내용을 뽑아오는 것입니다.

 

문제는 어떤건 뽑아오고 어떤건 값이 있어도 못 뽑아오네요;;;

이유가 뭔가요 ;;

 

<?php
$sql = " select ca_mobile_head_html from {$g5['g5_shop_category_table']} where ca_id = $it[ca_id2] "; // 3단분류
$rowf = sql_fetch($sql);


if ($rowf['ca_mobile_head_html']) {
?>
<div id="brand_in_detail"><?php echo conv_content($rowf['ca_mobile_head_html'], 1); ?></div>
<?php } ?> 

이 질문에 댓글 쓰기 :

답변 2

$sql = " select ca_mobile_head_html from {$g5['g5_shop_category_table']} where ca_id = $it[ca_id2] ";

==>

$sql = " select ca_mobile_head_html from {$g5['g5_shop_category_table']} where ca_id = '".$it[ca_id2]."'";

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 129,102
© SIRSOFT
현재 페이지 제일 처음으로