Gallian's 'Contemporary Abstract Algebra', Chapter 13 Problem 44.
Question has been asked here already, but the only answer involves factor rings, which haven't been covered at this point in the book yet.
If $k^2$ is a square mod p, we want to show $Z_p[\sqrt{k^2}] = Z_p[k] $ is not a field. Since a field is equivalent to an integral domain, we can look for nonzero elements $a + bk $ and $c + dk $ such that their product $ac + (ad+bc)k + bdk^2 = 0$ in $Z_p$. I am stuck at this point.
If k is not a square mod p, we want to show that $a + b\sqrt{k} $ has an inverse in $Z_p[\sqrt k]$. This would be true if we could rationalize $\frac{1}{a + b\sqrt{k}} $, and for that we need $(a + b\sqrt{k})(a - b\sqrt{k}) = a^2 - b^2k = 1 $ mod $ p$, or $p | a^2-b^2k-1$ for any a,b in $Z_p$. I am stuck at this point.