'0'"); if(!$r2){die(mysql_error());} $mas2=mysql_fetch_array($r2); if($mas2['ID']){ $r3=mysql_query("INSERT INTO ".$Db_Prefix."_ankets VALUES('0', '".$user['ID']."', '$id')"); if(!$r3){die(mysql_error());} $r3=mysql_query("UPDATE ".$Db_Prefix."_packets SET KolReal=KolReal-1 WHERE ID='".$mas2['ID']."'"); if(!$r3){die(mysql_error());} header("Location: info".$id.".html");exit; } else{ echo GetXML($my_PacketsError); exit; } } if($mess==""){header("Location: ".$_SERVER['HTTP_REFERER']);} else{header("Location: inbox.html?to=".$mess);} ?>