How to update my iPhone 5 if I can't connect to my computer?

Someone said the problem I'm having connecting and/or charging my iPhone 5 is due to a glitch in the software that will be resolved in the latest update. The problem is, I have no clue how to update my phone without plugging it in. Any ideas?

Go to Settings > General > Software Update and simply update your iOS device from there. I think that should work.

Try a hard reset. Hold the home button and the sleep/wake button on top down at the same time and keep doing this until it reboots.