Choose either excerpt or the_content

You can try this.

<?php 
      if ( is_single() )
              the_content();
      else
              custom_excerpt('custom_index'); 
    ?>

in your post loop.It prints content if the post is single.php page otherwise custom_excerpt() data.

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