【php开源代码栏目提醒】:网学会员php开源代码为您提供read_state_chk.php参考,解决您在read_state_chk.php学习中工作中的难题,参考学习。
<?php
session_start();
include "../conn/conn.php";
$i_sql = "update tb_iss set i_state = ".$_POST[a_state]." where id = ".$_POST[id];
$i_rst = mysql_query($i_sql,$conn);
if($i_rst)
echo "<script>alert('审核成功');window.close();</script>";
else
echo "<script>alert('审核失败,稍后再试');history.go(-1);</script>";
?>