USB Connection Quit On iPhone

I have always connected my iphone 4 to my laptop during the day to keep the battery charged. Now when I plug it in my laptop does not see it. And my phone no longer charges. Is there anyway to just replace the USB connector on a iPhone 4 myself?
