Help with simple PHP script (builds webpage)

Hi all

I have on my website 150 pics names “pic (x).jpg” where x is the number of the pic.
I want a small php script to:
put up twelve of these pics on the webpage inside a table
create a forward link to the next page where the next twelves pics will show up (and eventually a back link page too)

anyone can help me with this ?

cheers
mlk