One year old constipated

Lee

My one year old have been constipated for a couple of days which makes him not eat anything. He pooped yesterday but it was painful and super solid. Idk what to do I’m trying to feed him but he doesn’t want anything and he keeps trying to poop but can’t. He won’t drink any juice or water.