I do not want to alarm you but I am very concerned about your boy.These are very serious and can even be life threatening symptoms Any time a cat cant use his box he is either sick or in pain.
You should make a trip to the vet ASAP. - I think he has a urinary tract infection and is in danger of becoming blocked.
UTI's are serious in males because they are caused by sticky crystals in the bladder.At any time they can block the urethra.Since this is going on a while your boy is in great danger.Cats are very stoic animals so he may not cry out.
If he becomes unable to urinate that is a MEDICAL EMERGENCY . His bladder could burst and he would have to be catheterized to save his life.
If that is the case, you must take him to the vet right away
http://www.carecredit.com/ may finance his visit if money is an issue.
He may have a UTI that can be treated economically.
UTI's must be treated with an effective broad spectrum antibiotic like Clavamox or clidimycin and for a long enough duration so all bacteria is eradicated. If not, they will refluorish, stronger and more resistant and reinfect him. In addition, the bacteria can become tolerant of the same antibiotic so the medication should be varied for best results.
You can give him a few drops of unsweetened cranberry juice or 100 mg of vitamin C - That will reduce the PH of his urine but it is only to make him feel better.He still needs to see a vet for an antibiotic.
You can try immersing his lower half in warm water to see if it helps him pee but if he can't he MUST see a vet ASAP.
Please let me know what happens.
Please be so kind as to rate my answer with positive feedback; that is the only way I receive credit for my assistance. Thank you very much!
Providing a positive rating will not end our conversation, should you need me for any follow-up. Simply click 'Reply' for clarification or additional information, if needed, at no additional charge.