WP_Query infinite Loop

You need $form_enquiries->the_post() to “push” the loop onto the next post – otherwise yes, you get an infinite loop!

while ( $form_enquiries->have_posts() ) {
    $form_enquiries->the_post();
    // rest of your loop
}

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