I don't understand Ampere's circuital law Since, magnetic field is a vector quantity, two (or more) magnetic fields (when in close proximity) should influence their fields, according to the laws of vector.
And by that logic, Ampere's circuital law shouldn't work. Here's how-

So, according to Ampere's law,
$$∮\mathbf{B}\cdot d\mathbf{l}=\mu_0I_1$$
Since I've considered it to be an infinitely long wire, so
$$B\oint dl=\mu_0I_1$$
$$B=\frac{\mu_0I}{2πr_1}$$
That's the magnitude of the magnetic field at every point on that loop due to all the currents in the system, according to Ampere's law.
Now, that's the problem I've with Ampere's law. Both $I_1$ and $I_2$ produce magnetic field at $P$, but we take only one in consideration That is inside the loop, why's that?
Logically, what we should have at point $p$ must be a vector sum of magnetic fields produced by both the wires. The magnetic fields have to add up (vectorially) like every other vector quantity. In this way, Ampere's law is totally against the superposition principle.
And if all the above mentioned doesn't make my point clear, then consider this.

If we draw an amperian loop around $I_1$ through $P$. Then by Ampere's law
$$\oint\mathbf{B}\cdot d\mathbf{l}=\mu_0I_1$$
$$\Rightarrow B_1=\frac{\mu_0I_1}{2πr_1}=B_P$$
And now draw another amperian loop around $I_2$ through $P$. Then again by Ampere's law,
$$∮\mathbf{B}\cdot d\mathbf{l}=\mu_0I_2$$
$$ \Rightarrow B=\frac{\mu_0I_2}{2\pi r_2}=B_P$$
Now, how in the world is it possible that, at a unique point in space,we have two different values of magnetic field? It doesn't add up.
And I suppose so goes with, Gauss's law. Consider below,

Consider a gaussian surface around $q_1$ through $P$. According to Gauss's law,
$$\oint\mathbf{E}\cdot d\mathbf{A}=\frac{q_1}{\epsilon_0}$$
$$\Rightarrow E_1=\frac{q_1}{4\pi\epsilon_0r_1^2}$$
Now consider respectively the same for $q_2$
$$E=\frac{q_2}{4\pi\epsilon_0r_2^2}$$
Again same argument,$E_1$ and $E_2$ are not equal, which actually should be.
 A: I'll just consider your first example; resolving this is sufficient to explain your other examples. Your error is that $\oint \vec{B} \cdot d\vec{r} \neq \vec{B} \oint d\vec{r}$. The field due to current $I_2$ is not constant over the Amperian loop you have drawn. However, the line integral of the magnetic field due to $I_2$ over the loop is zero (due to Ampere's law).
On the other hand, it is true that $\oint \vec{B}_1 \cdot d\vec{r} = \vec{B}_1 \oint d\vec{r}$, where $\vec{B}_1$ is the field due to $I_1$, because of symmetry.
Thus putting it together, writing $\vec{B}=\vec{B}_1+\vec{B}_2$ (the total field is the sum of the field due to $I_1$ and $I_2$,
\begin{equation}
\oint \vec{B} \cdot d\vec{r} = \oint \vec{B}_1 \cdot d\vec{r} + \oint \vec{B}_2 \cdot d \vec{r} = |\vec{B}_1| \oint |d\vec{r}| + 0 = 2\pi R|\vec{B}_1| = \mu_0 I_1 \implies |\vec{B}_1| = \frac{\mu_0 I_1}{2\pi R}
\end{equation}
where $R$ is the radius of the loop.
A: 
So, according to Ampere's law,
$$∮\mathbf{B}\cdot d\mathbf{l}=\mu_0I_1$$
Since, I've considered it to be an infinitely long wire, so
$$B\oint dl=\mu_0I_1$$

This isn't a valid inference.
When this inference is made in the textbook derivation of the B field around a long wire, we use the symmetry of system (the system is radially symmetric around the axis of the wire) to derive the conclusion from Ampere's Law.
In your scenario with a second wire, there is no such symmetry, so we can't make this conclusion.
We can, as other answers have pointed out, use this result to find the contribution to the B field from each wire, and then use the superposition principle to sum the contributions from all the wires and get the total B field at each point.
A: It is going to be much easier for you if you take $I_1=0$, that is, form your “Amperian loop” or “Gaussian pillbox” in the vicinity of a current or charge, but not actually containing any. You are claiming that then your argument should make the fields identically zero on the loop/surface.
As folks are pointing out, it doesn’t. To see this, it really helps to use polar coordinates centered on $I_2$, so your loop consists of one arc of wire along the circle at radius $r_1$, a straight radial wire from $r_1$ to $r_2$, another arc of wire at $r_2$ subtending the same angle $\theta$ as the original, and another straight radial wire from $r_2$ back to $r_1$.
Why does this help? Because the field cast by $I_2$ has a circular symmetry: here it is perpendicular to the two straight wires, and parallel to the two arcs. So if the field strength is $B_1$ at $r_1$ and $B_2$ at $r_2$ then the only way that the sum over the loop is zero is if,
$$B_1 r_1 \theta + B_2 (-r_2\theta)=0.$$
But as you have seen, $B\propto 1/r$ and this is indeed satisfied.
In fact, we would say that there are these two fields that have curl zero and divergence zero, everywhere except one line/point where it is infinite with a bounded integral. In spherical coordinates, where $\theta\in[0,2\pi)$ is azimuthal/longitude and $\phi\in[0,\pi]$ is polar/latitude, these are $\hat theta/(r\sin\phi)$ and $\hat r/r^2$. Because they have these derivatives as zero outside of this line/point, the loops and pillboxes that do not contain this point integrate to zero always, while the ones that do contain the point integrate to non-zero values. So even though $\hat r/r^2$ seems to “diverge” it is important to understand that it is not actually having a non-zero divergence anywhere except that one point, similarly even though $\hat theta/(r\sin\phi)$ seems to “curl” about the line, it does not in fact have a non-zero curl anywhere except that one line.
Another way to put all this is an analogy to fluid flow fields, imagine $E,B$ as a velocity field $v$ for some fluid. If you had a flow field corresponding to these vector equations, $\hat r/r^2$ would describe a flow where fluid is being somehow injected into this single point at the origin and squirting outwards continuously out to infinity in a spherically symmetric fashion. Now, there are other non-trivial fields with zero divergence which you can understand as flows that come out of infinity and then go back into infinity, as well: and to say that this is somehow the “only basic” force law, that “everything is Coulomb” (just with translations, scaling, superpositions, etc.) requires imposing a boundary condition that the fields decay to zero off at infinity to rule out all of these other flows. Anyway, in this fluid flow analogy, zero curl now means that if you put a little pinwheel into the fluid, it would not be torqued and so it would not be spinning if it has some internal friction. So even though this other flow really appears to “curl” about the axis with its $\hat\theta$ component, the radial decay of the field is just enough that the torque on the outer edge of the pinwheel perfectly balances the torque on the inner edge of the pinwheel and the pinwheel does not spin, unless you get it right on that center point.
A: You are right, $\mathbf{B}$ is a vectorial quantity.
Furthermore, it depends on position $\mathbf{r}$.
Therefore we need to write $\mathbf{B}(\mathbf{r})$.
The magnetic field around two current-carrying wires
(with the currents flowing in the same direction) looks like this:

(image from schoolphysics - electromagnetism - forces between currents)
Notice especially, how the magnetic field in the region
between the two wires is very small, because the magnetic
contributions from the left and the right wire nearly cancel
each other there.
Now consider a loop around the right wire only.

Then the path integral along this loop
$$\oint_\text{right loop} \mathbf{B}(\mathbf{r})\cdot d\mathbf{l}$$
is not easy to calculate because $\mathbf{B}(\mathbf{r})$
varies when we go along the loop.
$\mathbf{B}(\mathbf{r})$ is not always parallel to $d\mathbf{l}$ of the loop.
And even more importantly, it varies in magnitude along the loop.
It is small in the left part of the loop (i.e. between the wires),
and it is large in the right part of the loop.
That is why we cannot simply pull the $\mathbf{B}$ out of the integral
and write
$$B\oint_\text{right loop} dl.$$
But nevertheless the equation
$$\oint_\text{right loop} \mathbf{B}(\mathbf{r})\cdot d\mathbf{r}=\mu_0 I_\text{right}$$
is still true.
The total path integral depends only on the current enclosed by the loop.
You can understand this by decomposing the magnetic field
$\mathbf{B}(\mathbf{r})$ into two parts,
one part created by the left wire, the other part created by the right wire.
$$\mathbf{B}(\mathbf{r})=\mathbf{B}_\text{left}(\mathbf{r})+\mathbf{B}_\text{right}(\mathbf{r})$$
Then you can write the path integral as
$$\begin{align}
&\oint_\text{right loop} \mathbf{B}(\mathbf{r})\cdot d\mathbf{l} \\
=& \oint_\text{right loop} (\mathbf{B}_\text{left}(\mathbf{r})+\mathbf{B}_\text{right}(\mathbf{r}))\cdot d\mathbf{l} \\
=& \oint_\text{right loop} \mathbf{B}_\text{left}(\mathbf{r})\cdot d\mathbf{l}
+ \oint_\text{right_loop} \mathbf{B}_\text{right}(\mathbf{r})\cdot d\mathbf{l} \\
=& \mu_0 0 + \mu_0 I_\text{right}
\end{align}$$
A: You are right that the magnetic fields add up as vectors at any point in space. You missunderstood the meaning of Ampere's law though.
The line integral of B is exactly what you suggest: the integral of all the resultant field, produced by all the currents, no matter if they are inside or outside the loop.
The nice thing expressed by Ampere's law is that tis integral depends only on the currents inside the loop. In other words, this tells you that the loop integral of fields produced by currents outside the loops is zero. But pay attention to the difference: not the fields of these external conductors are zero, their integral over a closed loop is zero.
With these clarification, I hope you can see the error in your examples with the two circular loops having currents in their centers. You assume that the loop integral is some constant B times the perimeter of the circle. But in this case B is not constant around the loop, as it has two components, from the two currents. The cylindrical symmetry does not work anymore. You cannot even use Ampere's law to find the field in this situation.  Ampere's law only tells you the values of the loop integral. But you cannot find B just from the value of the loop integral. With the exception of cases when B is constant around the loop. Which you don't have here.
So applying Ampere's law for the two loops will provide two values for the two loop integrals. That's all. Noting about B at a gien point (including your point P).
I suppose the missunderstanding comes from the fact that in classrooms the focus is on the symmetrical examples where Ampere's law can be used to find the field. We are trying to show the students that the law is "useful".
A: Your confusion stems from the derivation of the magnetic field from amperes law.
Amperes law says the line integral of b.dl is only due to the enclosed current * $\mu_0$
THIS IS TRUE FOR ANY PATH, and ANY open surface attached to that path . It doesn't have to be a circle. Nor does the surface have to be a flat surface. It could be a e.g bag shape.
the derivation of the B field from amperes law is as follows.
FOR A SINGLE INFINITELY THIN STRAIGHT CURRENT:
$\int B \cdot \vec{dl} = \mu_0 I $
now, Let's pick out gaussian ring  to be a circle centered the origin of radius r
Along that  SPECIFIC ring
because there is a single point of curl, going e.g out of the page. the magnetic field is in the same direction as the dl element of my chosen circular ring. ( if you understand what curl is, you'd know that in this PARTICULAR circumstance, where there is a line of curl  pointing in the same direction. The B field MUST make concentric circles around the point of curl.
THUS $ B \cdot \vec{dl} $
Reduces to $ |B||\vec{dl}|$
So  this means
$\int |\vec{B}  |\vec{dl}| = \mu_0 I$
Along this  CHOSEN ring, the B field has a constant magnitude along this path due to symmetry. thus I can say it is independent of the integral, thus I can bring it outside  of the integral.
$ |\vec{B}| \int   |\vec{dl}| = \mu_0 I$
And then for my chosen gaussian ring this reduces to
$|\vec{B}| =\frac{\mu_0 I}{2\pi r}$
Note, this is the $|\vec{B}|$ field for points on my CHOSEN gaussian ring. the same procedure can be done for a ring that is e.g a little further down the wire and you'd get the same result meaning this formula applies for all R distance away from the current
in the derivation we have assumed that the B field makes concentric circles around the point of curl such that B is in the direction of dl, we have also made the assumption that the B field is constant along that path
for 2 currents , the magnetic field definitely does NOT make concentric circles around our chosen gaussian ring. NOR is the B field constant around that path. Meaning the same procedure would be invalid for the case with 2 currents.
A: It has been a while since I thought about this, but I think Ampere's law, as used above, is used to acquire the magnetic field caused by the source current - the current enclosed. So, it then does not identify the total magnetic field in a region but only the magnetic field due to a current distribution in that region.
