When I use wifi or 3G on my iPhone and ipad 2 I loose Internet connection all the time since I've updated it to.ios 6. 3.1 anyone else having same problems ?
Try Settings > General > Reset > Reset Network Settings.
Beyond that, basic troubleshooting is reset, restart, restore (first from backup then as new). Try each of these in order until the issue is resolved.
Retrieving data ...