iPhone Not Charging When Plugged In?
Try steps at http://support.apple.com/kb/ht1476

not all ports on PCs have enough power for especially Ipads.   Try USB port at back of PC (ones directly connected to motherboard, instead of front ports or keyboard ports.   Front ones frequently have lower power delivery specs than back ones.