Random popup image per user with no repeat

move $masonry_photos_year = array_rand($masonry_photos_year); inside foreach

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