A.S.
Has it been happening since January, or has it just started recently? If it just started recently, I don't think it has anything to do with your daughter.
Contact your vet. It's possible a health condition could be causing the problem... urinary tract infection, kidney infection, worms, etc, etc. It's best to rule out any health issues first, and then your vet might be able to give you some other tips to help curb the behavior.
If nothing is medically wrong, and he's just acting out, it sounds like you'll have to potty train him all over again. Crate training works wonders. Put him in a crate when you aren't home and overnight. He can only have free access to the rest of the house after he eliminates outside. Make sure you let him out frequently, and ONLY let him out to do his business, then it's immediately back inside. That way he learns he is outside to go potty, and that's where he goes to do his business.
Someone else might have a better method, but this worked for our dog who we rescued from a shelter at around the age of 5, she had never been potty trained. It might take a while, but be persistent, consistent, and patient.