First, a hardware note: only one model of the original "fat" PS3 has Wi-Fi built in, while every Slim model does.
Assuming you have wireless hardware:
1. Set up a wireless router and an internet connection.
2. Open Settings on the XMB.
3. Go to Network Settings.
4. Choose the easy setup option.
5. Follow the on-screen instructions.
6. Select your SSID, which is your network name.
7. Enter your password.
8. Run the connection test.
9. Confirm the settings.
10. Enjoy.