First, be there for her. Listen closely, and validate her feelings . This can help her feel better about the problem, because she feels understood and less alone. Then, if you think you have advice, say "I may have some ideas on how to deal with this. Would you like to hear them?" That way, if she wants advice, she can say so and listen to your thoughts. (Sometimes people don't want advice, so this gives her the chance to decline.) Also, remember that this is something that any good friend would do. Doing this won't make her think that you want to date her. If you do want to date her, you need to flirt and consider asking her out, so that she knows your intentions.