include("../config/conn.php"); include("../config/function.php"); sesCheck(); $sqluser="select * from yjcode_user where uid='".$_SESSION[SHOPUSER]."'";mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser); $rowuser=mysql_fetch_array($resuser); $userid=$rowuser[id]; $bh=$_GET[bh]; while0("*","yjcode_gd where bh='".$bh."' and zt=99 and userid=".$userid);if(!$row=mysql_fetch_array($res)){php_toheader("gdlist.php");} //函数开始 if($_GET[control]=="update"){ zwzr(); $sj=date("Y-m-d H:i:s"); $txt=sqlzhuru1($_POST[content]); updatetable("yjcode_gd"," sj='".$sj."', zt=1, mot='".sqlzhuru($_POST[tmot])."', mail='".sqlzhuru($_POST[tmail])."', orderbh='".sqlzhuru($_POST[torderbh])."', txt='".$txt."', gdzt=1 where bh='".$bh."' and userid=".$userid); php_toheader("gdlist.php"); } //函数结果 ?>