A couple weeks ago my iPhone died, and ever since then the phone gradually wanted to charge less and less. Eventually it got to the point where it would no longer charge at all giving me the error "Charging is not supported with this accessory". I have two chargers, and neither work so it is definitely a problem with the iPhone and not the charger(s). I've tried charging using different USB ports on different computers, I've tried charging it directly from a wall in different areas of my house and even cleaning the charging dock but to no avail. My iPhone was jail broken, but I tried updating to the latest iOS and lost everything just to see if it would fix my phone, but it didn't. I'm thinking of buying parts online to repair it myself, but I'm not sure if I should buy a battery, a charging dock replacement or both. Both together would be about $45-$50, but I'm not sure which is the culprit. If you think I should buy the parts to fix it myself, where would you suggest I buy the parts online?