|
|
|
13-05-18
|
조회 1,056
|
|
|
|
13-05-18
|
조회 1,836
|
|
|
|
13-05-18
|
조회 6,643
|
|
|
|
13-05-17
|
조회 853
|
|
|
|
13-05-17
|
조회 4,008
|
|
|
|
13-05-17
|
조회 1,058
|
|
|
|
13-05-17
|
조회 1,123
|
|
|
|
13-05-17
|
조회 1,659
|
|
|
|
13-05-17
|
조회 1,339
|
|
|
|
13-05-17
|
조회 1,492
|
|
|
|
13-05-17
|
조회 966
|
|
|
|
13-05-17
|
조회 1,294
|
|
|
|
13-05-16
|
조회 1,780
|
|
|
|
13-05-16
|
조회 1,061
|
|
|
|
13-05-16
|
조회 1,060
|
|
|
|
13-05-16
|
조회 1,672
|
|
|
|
13-05-16
|
조회 1,088
|
|
|
|
13-05-16
|
조회 1,073
|
|
|
|
13-05-16
|
조회 1,636
|
|
|
|
13-05-16
|
조회 1,718
|
댓글 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]?>
잘 보고 갑니다.