Why is the Wi-Fi connected to computer but not to iphone 4?

I have been having trouble connecting to iphone. My wireless connects home to Wi-Fi and others but at work it won't connect. It says it connected to computer but on my phone says connected but when i actually go into Wi-Fi it just has a waiting sign going around which won't connect. Does anyone know why this could be?

It will depend who your phone contract is with.

Check with your office IT policies there might be MAC filtering at your work place which is holding your iPhone to connect to your work network. If so have your iPhone MAC added in work network. Also check if your work router is Wireless-N supported.