What I have done in the past is the javascipt usually has a list of images. You build the list with php/sql query and format it into the list.
What I have done in the past is the javascipt usually has a list of images. You build the list with php/sql query and format it into the list.