$ 0 0 you have id=3 in your PHP code, but id="p3" in your XML. I don't know if this is causing you problems.