How do I stop my dog from whining?

Mrs Bibbles asked: We have a rescue dog, aged between 18 mths and 2yrs, and can’t stop him from whining for attention, no matter how much he gets! We have tried the ‘clicker’ but it hasn’t given good results as yet! Any ideas?