dedecms织梦cms关注作用如何做

global $dsql; $row = $dsql- GetOne( Select id,zan From dede_archives where id= .$aid. return $row[ zan }
background:#000; opacity:.8;filter:alpha(opacity=80);} .zan p a{padding-left:30px; height:24px; background:url(/images/heart.png) no-repeat 4px -1px;color:#fff; font-weight:bold; font-size:14px} .zan p a:hover{background-position:4px -25px;text-decoration:none}
$dsql- SetQuery( SELECT ip FROM dede_zan WHERE aid= .$id. and ip= $ip $dsql- Execute(); $count = $dsql- GetTotalRow(); if($count==0){ //假如沒有纪录 $dsql- ExecuteNoneQuery( update dede_archives set zan=zan+1 where id= $id //载入赞数 $dsql- ExecuteNoneQuery( insert into dede_zan (aid,ip) values ( $id , $ip //载入IP,及被赞的AID $rows = $dsql- GetOne( Select zan from dede_archives where id= .$id. //获得被赞的总数 $zan = $rows[ zan //获得赞标值 echo $zan; }else{ echo 赞已过.. }