$dsql->ExecuteNoneQuery("update dede_archives set zanzan=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 "赞过了..";
}
?>