Synthesis, X-ray powder structure, and magnetic properties of layered NiII methylphosphonate, [Ni(CH3PO3)(H2O)], and NiII octadecylphosphonate, [Ni(CH3-(CH2)17-PO3)(H2O)].