|
|
|
12년 전
|
조회 1,043
|
|
|
|
12년 전
|
조회 995
|
|
|
|
12년 전
|
조회 1,540
|
|
|
|
12년 전
|
조회 1,134
|
|
|
|
12년 전
|
조회 845
|
|
|
|
12년 전
|
조회 1,721
|
|
|
|
12년 전
|
조회 813
|
|
|
|
12년 전
|
조회 989
|
|
|
|
12년 전
|
조회 1,044
|
|
|
|
12년 전
|
조회 955
|
|
|
|
12년 전
|
조회 1,712
|
|
|
|
12년 전
|
조회 6,519
|
|
|
|
12년 전
|
조회 746
|
|
|
|
12년 전
|
조회 3,892
|
|
|
|
12년 전
|
조회 950
|
|
|
|
12년 전
|
조회 1,019
|
|
|
|
12년 전
|
조회 1,563
|
|
|
|
12년 전
|
조회 1,226
|
|
|
|
12년 전
|
조회 1,406
|
|
|
|
12년 전
|
조회 870
|
댓글 2개
예를들어 cf_9 :추천수 누적 cf_10 :비추천수 누적
간단한 코드는 아래와 같이
<a href="mygood.php?cf_9=1" target="hiddenframe">추천</a>
<a href="mygood.php?cf_10=1" target="hiddenframe">비추천</a>
mygood.php
<?
include "_common.php";
if($cf_9){ $qry="cf_9=cf_9+1"; $msg='추천';}
else if($cf_10){ $qry="cf_10=cf_10+1"; $msg='비추천';}
else{ alert_close('노노노'); exit;}
sql_query("update $g4[config_table] set $qry");
alert_close($msg);
?>
추천수 출력은 <?=$config[cf_9]?>
잘 보고 갑니다.