Its important to note which stopped first, the eating or the pooping? If the pooping stopped first a pysical problem like a blockage or infection would be more likely. If the eating stopped first then its even trickier. When did he stop eating? Was it a slow taper or just an acute onset of anorexia? When was his last bowel?
What substrate is he on? The first thing that usually comes to mind when they stop eating/pooping is impaction. If your substrate is made of anything he could get into his mouth then impaction is a risk.
Parasite over load can also cause constipation. It can also cause appetite loss which leads int urn to less defecation.
Urate stones from improper hydration can also cause a blockage. How often is your beardie soaked and misted?
There are many other reasons such as infection, cancer, low calcium (leading to the inability to contract the muscles that cause defecation). Your beardie really needs to get to a vet. A vet will be able to preform a variety of tests that will rule out various possibilities. X-rays with and without barium can be preformed to rule out impaction, blood work may be able to distinguish calcium levels.
While you are waiting for your appointment, keep your beardies hyrdration up, this is really important. Soak him daily for 30-40 minutes in warm water and massage his belly.
You can also feed pureed squash and mineral oil to try and smooth things along.
Good luck!
Good luck!
-----
0.1 Bearded dragon (Hannabil)
0.1 mexican Black kingsnake (Morticia)
1.1.2 Leopard Gecko's (Pogo, Louise, Orion, Jeffrey Nothing)
0.0.1 Tokay Gecko
1.0 Blue Tongue Skink
0.0.1 Reverse Okeetee Corn (Autumn)
0.1 Bullmastiff (Asha)
4.1 Cats (Poe, Tucker, Abhid, Felicity, Emmy)