If you've bought co-codamol from a pharmacy, do not give it to your child for more than 3 days. If their pain has not gone away after 3 days, talk to a pharmacist or doctor. If your doctor has prescribed co-codamol for your child, give it for as long as recommended.