composer @Ta | |
2020-04-22 19:55 |
<script language="javascript" type="text/javascript">
function zan(id){
$.ajax({
url:"/zl/kzclass/zan.php",
type:"POST",
data:{"id":id},
async:false,
success:function(data){
if(data === false){
alert('点赞失败!');
}else{
alert('点赞成功!');
$("#s"+id).text(data);
}
}
})
}
</script>
<span id="{% echo "s".$mdreads[0]; %}">{% {echo$#$mdreads[3]} %}</span>
<span onclick="zan({% {echo$#$mdreads[0]} %})">赞</span>
require("../config/pdoconn.php");
$id=$_POST["id"];
$res=$dbh->exec("update zq_WEBBT SET );
if($res){
$z=$dbh->query("selct * FROM )->fetch();
$zan=$z[3];
}
echo $zan;
阅:1721 | 发表于2020-04-22 19:55 |
心灵鸡汤:
      
®2019-2024 all power by Zlproject3.7
川公网安备 51192202000151号
蜀ICP备2021014921号-2
首页 #top
天合之作 曲在人意