I have a problem charging my iPhone 3G

I have a problem charging my iPhone 3G. It gives me an error message that says the accessory used is not supported. However, I attempted to charge my iPhone with several other wall chargers, connecting it to my laptop and my desktop computer, all the while getting the same error message.
What could be wrong? Is the problem possibly with my iPhone? Help!
