I have to calculate the magnetic field along the axis of a ring of radius $R$ on which circulates a current $I$ using the Biot-Savart law. The Biot-Savart law as given in my (really bad) course states
$$\mathbf{B}=\frac{\mu_0}{4\pi}\oint_{C}\frac{\mathbf{I}\times \mathbf{r}}{|\mathbf{r}|^3}\mathrm{d}l $$
where in this case
$$C=\{(\rho, \phi, z): \rho=R, \, z=0,\,\phi\in[0,2\pi[ \}$$
and $\mathbf{I}=I\hat{e}_{\phi}$
we have $\mathbf{r}=\rho\hat{e}_{\rho}+z\hat{e}_z$, thus
$$\hat{e}_\phi\times \mathbf{r}=\hat{e}_\phi\times(\rho\hat{e}_{\rho}+z\hat{e}_z)=-\rho\hat{e}_z+z\hat{e}_\rho$$ and thus
$$\mathbf{B}=\frac{\mu_0}{4\pi}\int_{0}^{2\pi}\left[\frac{-\rho\hat{e}_z+z\hat{e}_\rho}{(\rho^2+z^2)^\frac{3}{2}}\right]_{\rho=R, \,z=0}\mathrm{d}\phi$$
which of course gives something which is constant and wrong. I really don't understand how this formula could give anything which makes sense, since every spatial variable will disappear with the integration. I found other versions of the law around which include notations such as $\vec{dl}\times\vec{r}$ which I just don't understand, I don't know what it means to take the cross product of a differential with something. Do I have a wrong Biot-Savart law? If not, what am I doing wrong? Thank you.