Get all post from a post type

You can try this:

$options = array('post_type'.    => 'product', 
                 'post_per_page' => -1,
                 'nopaging' => true, )
$loop    = new WP_Query( $options );

This adds 'nopaging' => true,. See Class_Reference/WP_Query#Pagination_Parameters for more info

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