Andreid31,
I don't think there's anything wrong with your phone's settings, since everything worked fine using someone else's wifi.
Personally, I think the problem is your router. Somehow there must be a conflict between router and phone. Menu of routers is different, hard to point you into the right direction. I think the best way would be checking the settings manually. In most router menus there's a tab or something comparible called "Wireless". In there check all the options. Somewhere you can find if it says WPA or WPA2 with the network key. This must be the same as the one in your phone. Then somewhere you will find the possibility to add MAC-addresses for the devices you want to access your router. Mind: sometimes it gives you the option for blocking instead of adding! In that case: leave the fields empty.
Still something I don't understand from what you have told us: you said: "i tried it earlier no security, then with wep ,then with wpa. still no connection but it says connected to wifi. except wpa where it says disabled..means it does not connect at all." Now: is it or isn't connected to wifi? In your first post you said you had wifi connection, no internet connection, I don't understand anymore!
And frankly, I don't know if your habit of making your router forget the network and reconnect again after every update is such a good idea, specially if you are using quick setup instead of manual setup. It's possible that quick setup is causing standard settings that mess up your connection.
Long story. It all comes down to the fact that I believe there is a discrepancy between your router and your phone. With someone else's wifi obviously everything works fine, so that is the only conclusion I can get out of this. Try and find a router manual of your type on the internet and follow the steps.