$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 "赞过了..";
}
$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 "赞过了..";
}
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/5d4c3441e7f3f35173d87c90b6f54dbe.html