
위에 사진상 상품리뷰 쪽을 불러와야되는데 내용은있는데 불러오질 않습니다..
소스코드를 어떻게 변경하면될까요? 문의드립니다 ㅜ
Copy
<section id="anc_sidx_qna">
<h2>상품문의</h2>
<?php echo $pg_anchor; ?>
<div class="ul_01 ul_wrap">
<ul>
<?php
$sql = " select * from {$g5['g5_shop_item_qa_table']}
where iq_answer = ''
order by iq_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['iq_name']), $row1['mb_email'], $row1['mb_homepage']);
?>
<li>
<a href="./itemqaform.php?w=u&iq_id=<?php echo $row['iq_id']; ?>" class="qna_link"><?php echo conv_subject($row['iq_subject'],40); ?></a>
<?php echo $name; ?>
</li>
<?php
}
if ($i == 0)
echo '<li class="empty_list">자료가 없습니다.</li>';
?>
</ul>
</div>
<div class="btn_list03 btn_list">
<a href="./itemqalist.php?sort1=iq_answer&sort2=asc">상품문의 더보기</a>
</div>
</section>
<section id="anc_sidx_ps">
<h2>상품리뷰</h2>
<?php echo $pg_anchor; ?>
<div class="ul_01 ul_wrap">
<ul>
<?php
$sql = " select * from {$g5['g5_shop_item_use_table']}
where is_confirm = ''
order by is_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['is_name']), $row1['mb_email'], $row1['mb_homepage']);
?>
<li>
<a href="./itemuseform.php?w=u&is_id=<?php echo $row['is_id']; ?>" class="ps_link"><?php echo conv_subject($row['is_subject'],40); ?></a>
<?php echo $name; ?>
</li>
<?php
}
if ($i == 0)
echo '<li class="empty_list">자료가 없습니다.</li>';
?>
</ul>
</div>
<div class="btn_list03 btn_list">
<a href="./itemuselist.php?sort1=is_confirm&sort2=asc">사용후기 더보기</a>
</div>
</section>
</div>
답변 1개 / 댓글 4개
채택된 답변
+20 포인트
마르스컴퍼니
2022-10-18 (화) 16:48:31
해당 페이지 소스는 (관리자) '미확인' 후기만 노출되도록 되어 있습니다.
'확인', '미확인' 관계없이 노출하고 싶다면,
where is_confirm = ''
->
where 1
로 변경하면 됩니다.
답변에 대한 댓글 4개
피콘123
2022-10-18 (화) 17:00:47
피콘123
2022-10-18 (화) 17:04:38
[code]
where is_confirm = '1'
[/code]
이렇게 변경했습니다
잘나오네요 감사합니다!!
where is_confirm = '1'
[/code]
이렇게 변경했습니다
잘나오네요 감사합니다!!
마르스컴퍼니
2022-10-18 (화) 17:08:41
where is_confirm = '1'
은 '확인'된 후기만 나옵니다.
where 1
이 '확인'/'미확인' 후기가 모두 나옵니다.
은 '확인'된 후기만 나옵니다.
where 1
이 '확인'/'미확인' 후기가 모두 나옵니다.
답변을 작성하려면 로그인이 필요합니다.
<?php
$sql = " select * from {$g5['g5_shop_item_use_table']}
where is_confirm = 1
[/code]
이렇게 변경하면되는걸까요!?