Problem creating an edit link for a custom post type

Regularly You have this:

<?php edit_post_link( $link, $before, $after, $id ); ?> 

In this example use “echo”

<?php echo $post->ID ?>">

Instead:

<?php $post->ID ?>">

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