include("conn.php"); include("function.php"); $lx=1; if($_POST){ $id=intval($_POST['id']); $nr=htmlencode2($_POST['nr']); if(isset($_SESSION['qtuser'])&&$_SESSION['qtuser']=='123abc*.;'){ $uid=$_SESSION['uid']; $sql="select * from huiyuan where id='$uid'"; $query=mysql_query($sql); $row=mysql_fetch_array($query); if($row['zt']>0){ $today=date("Y-m-d G:i:s"); $sql="insert into pinglun(hyid,plid,dqdate,nr) values('$uid','$id','$today','$nr')"; mysql_query($sql); $sql="update info set gxdate='$today' where id='$id'"; mysql_query($sql); ?> } else{ ?> } } else{ ?> } } ?>
include("plshow.php"); ?> |