How to turn off camera sound on an iPhone 4s?

I've tried using the silent switch on the side, this isn't working.

Your silent switch is probably broken so you have to get that replace. You can also use assistive touch to turn on/off the silent switch. Go to setting>general>accessibility>assistive touch and then turn it on.

The silent switch is the way. If that doesn't work then something's wrong.