wp_reset_query equivalent for WP Ecommerce

You can use (according to docu over @wp-ecommerce) global $wpsc_query; to modify your query.

Resetting the loop can be done with wpsc_rewind_products(); right before the second call to while (wpsc_have_products()) : wpsc_the_product();

For the final solution, pls read the comments below.

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