여기에 보면 list.skin.php 파일안에 출력소스입니다
<!--<b>판매가격</b> :-->
<? if ($product[pr_use_point]) { ?>
<?=number_format($product[pr_sale_price])?> 포인트
<? if ($rate) { ?>
<s><?=number_format($product[pr_original_price])?> 포인트</s>
↓<?=mw_soc_rate($product[pr_original_price], $product[pr_sale_price])?>%
<? } ?>
<? } else { ?>
<?=$mw_cash[cf_cash_name]?>
<?=number_format($product[pr_sale_price])?> <?=$mw_cash[cf_cash_unit]?>
<? if ($rate) { ?>
<s><?=number_format($product[pr_original_price])?> <?=$mw_cash[cf_cash_unit]?></s>
↓<?=mw_soc_rate($product[pr_original_price], $product[pr_sale_price])?>%
<? } ?>
<? } ?>

위에 이미지처럼 출력되고 있는데요
이것을 최신글 latest.skin.php 파일에 박아두고 sql문을 제일상단
$product = sql_fetch("select * from {$mw_soc[product_table]} where bo_table = '{$bo_table}' and wr_id = '{$list[$i][wr_id]}'");
이렇게 날렸는데 오류가 나옵니다

|
답변 3개 / 댓글 5개
채택된 답변
+20 포인트
12년 전
테이블정의가 안되어 잇어서 그냥 테이블명으로 뽑아야하지않을까요?
최신글이면......
$product = sql_fetch("select * from g4_mw_soc_product where bo_table = '{$bo_table}' and wr_id = '{$list[$i][wr_id]}'");
답변에 대한 댓글 4개
돼지코구뇽
12년 전
훔. 그래도 안되네요
어떻게 해야될까요 흐음 해결해주시면 의뢰로 판단하고 밥값 만원 쏴드림 광어회 9900원짜리 드셔영
어떻게 해야될까요 흐음 해결해주시면 의뢰로 판단하고 밥값 만원 쏴드림 광어회 9900원짜리 드셔영
12년 전
전 나오는데요?
$product = sql_fetch("select * from g4_mw_soc_product where bo_table = '$bo_table' and wr_id = '{$list[$i][wr_id]}'");
print_r ($product);
$product = sql_fetch("select * from g4_mw_soc_product where bo_table = '$bo_table' and wr_id = '{$list[$i][wr_id]}'");
print_r ($product);
12년 전
for 문안에 넣었고
$product = sql_fetch("select * from g4_mw_soc_product where bo_table = '$bo_table' and wr_id = '{$list[$i][wr_id]}'");
print_r ($product);
그래도 안되면
$bo_table 을 고정으로 줘보세요.......
$product = sql_fetch("select * from g4_mw_soc_product where bo_table = '$bo_table' and wr_id = '{$list[$i][wr_id]}'");
print_r ($product);
그래도 안되면
$bo_table 을 고정으로 줘보세요.......
12년 전
$product = sql_fetch("select * from g4_mw_soc_product where bo_table = '$bo_table' and wr_id = '{$list[$i]['wr_id']}'");
wr_id 에 콤마도 찍어보세요......
답변에 대한 댓글 1개
12년 전

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