주문내역 출력시 it_name 옆에 it_maker를 넣고 싶은데요
FROM {$g5['g5_shop_order_table']} a, {$g5['g5_shop_cart_table']} b 여기에
{$g5['g5_shop_item_table']} c 를 넣고 c.it_maker를 추가하고 $row['it_name'].$row['it_maker']로 하면
전체 상품이 나와버리는 오류가 나고 제가 그 뒤로 수정을 못하겠어서
$g5['g5_shop_order_table']} a 이나 {$g5['g5_shop_cart_table']} b 에 아예 it_maker를 넣고 a나 b.it_maker를 하고 싶은데요
어떻게 해야 하나요? ㅠㅠ
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
블랙캣77
2017-01-13 (금) 19:15:55
(select it_maker from {$g5['g5_shop_item_table']} as c c.it_id = b.it_id) as it_maker
select에 추가해주시면 됩니다.
더 좋은 방법이 있을수도 있는데 제 생각을 적어드립니다.
답변에 대한 댓글 1개
2017-01-16 (월) 13:56:40
답변을 작성하려면 로그인이 필요합니다.
FROM {$g5['g5_shop_order_table']} a, {$g5['g5_shop_cart_table']} b
where a.od_id = b.od_id ";
여기다가 저걸 넣으니까 안되네요 어떻게 추가해야 하죠? ㅠㅠ