While loop inside another while loop

I would create a custom query for each nested loop and loop on its post data. Similar to what is written about here.

You will probably need to save the post global to a temporary variable so it can be set back ( setup_postdata() ) at the end of the nested look.

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