| 12345678910111213141516 |
- <?php
- include("../config/conn.php");
- include("../config/function.php");
- sesCheck();
- $sj=date("Y-m-d H:i:s");
- $bh=$_GET[bh];
- $ty1id=intval($_GET[ty1id]);
- $userid=returnuserid($_SESSION[SHOPUSER]);
- while0("*","yjcode_pro where userid=".$userid." and bh='".$bh."'");if(!$row=mysql_fetch_array($res)){php_toheader("productlist.php");}
- while1("*","yjcode_taocan where userid=".$userid." and id=".$ty1id);if(!$row1=mysql_fetch_array($res1)){php_toheader("productlist.php");}
- $nxh=returnxh("yjcode_taocan"," and admin=2 and tit='".$row1[tit]."' and probh='".$bh."'");
- intotable("yjcode_taocan","tit,xh,admin,probh,userid,zt","'".$row1[tit]."',".$nxh.",2,'".$bh."',".$row[userid].",99");
- $id=mysql_insert_id();
- php_toheader("taocan1.php?ty1id=".$_GET[ty1id]."&bh=".$bh."&id=".$id);
- ?>
|