include("../config/conn.php"); include("../config/function.php"); $id=intval($_GET[id]); if(empty($_SESSION["SHOPUSER"])){php_toheader("openw.php");} while1("id,bh,userid","yjcode_pro where id=".$id." and zt=0");if(!$row1=mysql_fetch_array($res1)){Audit_alert("商品不存在或未上架",weburl,"parent.");} $userid=returnuserid($_SESSION["SHOPUSER"]); $probh=$row1[bh]; if($_GET[yjcode]=="wd"){ zwzr(); $txt=sqlzhuru1($_POST["s1"]); $mybh=returnbh(); intotable("yjcode_wenda","bh,probh,userid,selluserid,sj,uip,txt,hftxt","'".$mybh."','".$probh."',".$userid.",".$row1[userid].",'".getsj()."','".getuip()."','".$txt."',''"); php_toheader("wenda.php?id=".$id."&t=suc"); } ?>