Welcome Guest, Not a member yet? Register   Sign In
foreach image from directory

how to display all images from a directoy with foreach?

first get their names from db, and then in view supply path with the corresponding image names
all images will be displayed with foreach


If you are not storing the name in DB and still u want to get all the names from directory then use glob function in PHP . If this is requirement then i can provide more help about this.

Theme © iAndrew 2016 - Forum software by © MyBB