wp_query if have posts show date but not in loop

Try:

<?php if ( $the_query->have_posts() ) :?> 

   <?php echo '<h3>' . date('l, F jS') . '</h3>'; ?>

   <?php while ( $the_query->have_posts() ) : ?>
     // etc. 

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