소셜커머스 최신글을 만드는 과정에서 채택완료
돼지코구뇽
11년 전
조회 6,687
여기에 보면 list.skin.php 파일안에 출력소스입니다
if ($product[pr_use_point]) { ?>
=number_format($product[pr_sale_price])?> 포인트
if ($rate) { ?>
↓=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) { ?>
↓=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개
채택된 답변
+20 포인트
11년 전
테이블정의가 안되어 잇어서 그냥 테이블명으로 뽑아야하지않을까요?
최신글이면......
$product = sql_fetch("select * from g4_mw_soc_product where bo_table = '{$bo_table}' and wr_id = '{$list[$i][wr_id]}'");
로그인 후 평가할 수 있습니다
답변에 대한 댓글 4개
�
히어1
11년 전
잘아시겠지만 제일 상단이라하셨는데 for 문 위에 넣으신건 아니죠?
�
돼지코구뇽
11년 전
훔. 그래도 안되네요
어떻게 해야될까요 흐음 해결해주시면 의뢰로 판단하고 밥값 만원 쏴드림 광어회 9900원짜리 드셔영
어떻게 해야될까요 흐음 해결해주시면 의뢰로 판단하고 밥값 만원 쏴드림 광어회 9900원짜리 드셔영
�
히어1
11년 전
전 나오는데요?
$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);
�
히어1
11년 전
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 을 고정으로 줘보세요.......
댓글을 작성하려면 로그인이 필요합니다.
11년 전
$product = sql_fetch("select * from g4_mw_soc_product where bo_table = '$bo_table' and wr_id = '{$list[$i]['wr_id']}'");
wr_id 에 콤마도 찍어보세요......
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
히어1
11년 전
그나저나 코구녕님하구 저하고 공교롭게 같은작업을 하고 잇엇네요.......ㅋ
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인