테스트 사이트 - 개발 중인 베타 버전입니다

그누보드 DB에서 가져 올 수 있나요?  채택완료

alexseo 4년 전 조회 1,504

/shop/cart.php 

위의 파일에서 아래의 소스를 넣었습니다.

 

아래의 것은 출력이 안됩니다.

그누보드 DB에서 가져 올 수 있나요? 

".$result['co_content']."

\n";    ?>

 

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

답변 3개

채택된 답변
+20 포인트
4년 전

$g5['g5_content_table']

->

$g5['content_table']

 

※ /data/dbconfig.php

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

a
alexseo
4년 전
트샷 님, 답변 감사합니다.
해결했습니다.

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

echo $g5['g5_content_table'];

하셔서

이런 테이블이 있는지 확인해 보세요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

a
alexseo
4년 전
엑스엠엘 님, 답변 감사합니다.

있습니다.

g5_auth
g5_autosave
g5_board
g5_board_file
g5_board_good
g5_board_new
g5_cert_history
g5_config
g5_content
g5_faq
g5_faq_master
g5_group
g5_group_member
g5_login
g5_mail
g5_member
g5_member_social_profiles
g5_memo
g5_menu
g5_new_win
g5_point
g5_poll
g5_poll_etc
g5_popular
g5_qa_config
g5_qa_content
g5_scrap
엑스엠엘
4년 전
echo를 해 보셨으면 금방 답이 나왔을 텐데요...

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

4년 전

해당만 있는거라서면 위치에ㅏ 따른 common 파일을 불러와보세요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

a
alexseo
4년 전
블랙캣77님, 답변 감사합니다.

/shop/cart.php 에 있습니다.

<?php
include_once('./_common.php');
$naverpay_button_js = '';
include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');

// 보관기간이 지난 상품 삭제
cart_item_clean();

$sw_direct = isset($_REQUEST['sw_direct']) ? (int) $_REQUEST['sw_direct'] : 0;

// cart id 설정
set_cart_id($sw_direct);

$s_cart_id = get_session('ss_cart_id');
// 선택필드 초기화
$sql = " update {$g5['g5_shop_cart_table']} set ct_select = '0' where od_id = '$s_cart_id' ";
sql_query($sql);

$cart_action_url = G5_SHOP_URL.'/cartupdate.php';

if(function_exists('before_check_cart_price')) {
before_check_cart_price($s_cart_id, true, true, true);
}

if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/cart.php');
return;
}

// 테마에 cart.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
$theme_cart_file = G5_THEME_SHOP_PATH.'/cart.php';
if(is_file($theme_cart_file)) {
include_once($theme_cart_file);
return;
unset($theme_cart_file);
}
}

$g5['title'] = '장바구니';
include_once('./_head.php');
?>

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

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

로그인