IPhone won't charge at all unless powered off?

I've had my phone for almost a year now and just started having charging issues. For some reason my phone will not allow itself to charge unless it's completely powered off. This problem has been going on for 3-4 days now, and it didn't happen until maybe a day or two after I upgraded to iOS 8. I tried seeing if it was maybe the cord being silly but when I hooked it up to my laptop, windows wouldn't recognize the phone itself. I don't know what's wrong with it! I told my mom and she thought it was weird, too. But she refuses to take it to an Apple Store, or repair store in general. So any possible answers or advice would be nice.

That is odd because I never turn my iphone off ever. Maybe its an issue with the new OS as typically the first month of a new release they have several patches, this is why I never update a new OS for a month or so.

May i ask which phone you are talking about, it must be a iphone seen that you had to take it to the apple store