How do I display the post_title with get_permalink?

Thanks guys! I was able to solve it with:

<a href="".get_permalink($comment->comment_post_ID)."">".get_the_title($comment->comment_post_ID)."</a>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)