화면을 터치하면 카운트되는 프로그램입니다. 채택완료
이를 실행하면, 값이 넘어오지 않았다는 메세지가 뜹니다. 고수님들, 뭐가 잘못되었는지 봐주시면 감사 무더운 여름에 건강하시길
if(!$is_member){ $href = "./login.php?".$qstr."&url=".urlencode(G5_URL.'/bbs/bible_cnt.php'); alert('로그인 하세요!', $href); }
$today_now = date("Y-m-d"); $row2 = sql_fetch(" select bb_id from {$g5['bible_option_table']} where bo_time like '{$today_now}%' "); $bb_id = $row2['bb_id'];
//$row2 = sql_fetch(" select MAX(bb_id) as max_bb_id from {$g5['bible_table']} "); //$bb_id = $row2['max_bb_id'];
$bn = sql_fetch(" select MAX(bn_id) as max_bn_id from {$g5['banner_table']} "); $bn_id = $bn['max_bn_id'];
$sql = " select * from {$g5['bible_option_table']} where bo_time like '{$today_now}%' "; $result = sql_query($sql, false); ?>
$today2 = date("Y-m-d");
/* 한글하가다 */ $row3 = sql_fetch(" select * from bible where cate = '{$row['bo_a']}' and book = '{$row['bo_b']}' and chapter = '{$row['bo_c']}' and paragraph = '{$row['bo_d']}' "); /* 영어하가다 */ $row7 = sql_fetch(" select * from bible2 where cate = '{$row['bo_a']}' and book = '{$row['bo_b']}' and chapter = '{$row['bo_c']}' and paragraph = '{$row['bo_d']}' ");
$hit = sql_fetch(" select count(*) as cnt from {$g5['bible_hit_table']} where mb_id = '{$member['mb_id']}' and bh_type = 'good'and bh_datetime like '{$today2}%' ");
/* 한글하가다 조건문 */ if(!$row['bo_e']){ $row['bo_e'] = $row3['sentence']; } /* 영어하가다 조건문 */ if(!$row['bo_g']){ $row['bo_g'] = $row7['sentence']; } $data = $hit['cnt']; $num = str_pad($data,"4","0",STR_PAD_LEFT); ?>
|
|
|
|
|
|
답변 1개
bible_hit2.php 에 내용도 보아야 대략적으로 알수 있을듯 한데요
대략보면
값넘기는 부분에 &bo_no=
부분이 있는 것과 없는것이 있습니다 bo_no 값이 들어가야 하는것인지 확인해 보세요
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인