Note: $(d)$ is a nonzero proper ideal of $R$.
My attempt:
Consider $\pi:R\to R/(d)$, then $\ker(\pi)=(d)$. I want to prove that there is no $\sigma:R/(d)\to R$ such that $\pi\circ \sigma=id_M$.
Suppose that such a $\sigma$ exists, then $R\cong (d) \oplus R/(d)$. I'm not entirely sure if this is a contradiction. I know that the ideals of $R/(d)$ are the (principal) ideals of $R$ that contain $(d)$, but other than that I don't really see where I could use the fact that $R$ is a PID.
Thanks.