/shop/cart.php
위의 파일에서 아래의 소스를 넣었습니다.
아래의 것은 출력이 안됩니다.
그누보드 DB에서 가져 올 수 있나요?
<?php
$sql3 = " select * from {$g5['g5_content_table']} ";
$result = sql_fetch($sql3);
echo "테스트333 :<div class=\"sct_basic\">".$result['co_content']."</div>\n";
?>
답변 3개 / 댓글 4개
$g5['g5_content_table']
->
$g5['content_table']
※ /data/dbconfig.php
답변에 대한 댓글 1개
echo $g5['g5_content_table'];
하셔서
이런 테이블이 있는지 확인해 보세요.
답변에 대한 댓글 2개
있습니다.
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
해당만 있는거라서면 위치에ㅏ 따른 common 파일을 불러와보세요
답변에 대한 댓글 1개
/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');
?>
답변을 작성하려면 로그인이 필요합니다.
해결했습니다.