<?
include("../config/conn.php");
include("../config/function.php");
$bh=$_GET[bh];
if(empty($bh)){exit;}
$tcid=$_GET[tcid];
if(empty($_SESSION["SHOPUSER"])){echo "err1";exit;}
while1("bh,userid","yjcode_pro where bh='".$bh."' and zt=0");if(!$row1=mysql_fetch_array($res1)){exit;}
$userid=returnuserid($_SESSION["SHOPUSER"]);
if($userid==$row1[userid]){echo "err2";exit;}
if(panduan("*","yjcode_car where probh='".$bh."' and tcid=".$tcid." and userid=".$userid)==1){echo "ok";exit;}
$sj=date("Y-m-d H:i:s");
intotable("yjcode_car","probh,userid,sj,num,tcid","'".$bh."',".$userid.",'".$sj."',".$_GET[kcnum].",".$tcid."");
echo "ok";exit;
?>
