Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Fidel Torres](https://secure.gravatar.com/avatar/ab003d5027db17b9937fa36d4c97cfe1?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Fidel Torres
25,286 PointsMy Library of Images...
Hello, I want to know if there is a possibility of creating something likes this. Lets assume that I got a folder with multiples images an "X" # of images... so what I want is to load each picture on my website automatically depending on the number of pictures lets say X=10 then I get 10 pictures on my website!!!! please let me know, Thanks in advance guys.
1 Answer
![Kevin Korte](https://uploads.teamtreehouse.com/production/profile-photos/86647/micro_me.jpg)
Kevin Korte
28,148 PointsYou might be able to try this and modify the loop to return what you need. Another option is to load images into a database and than query the database. That would be commom if you were using a CMS.
http://stackoverflow.com/questions/14194173/count-number-of-files-in-folder-in-php
Fidel Torres
25,286 PointsFidel Torres
25,286 PointsI would get solutions if there is any but using JS...