I'm trying to add a mini-image gallery.
The images are files numbered 1-202. Their names are 1.jpg, 2.jpg, etc.
So, basically, I want this to display (in HTML form):
<td><img src="directory/1.jpg"><br />
<img src="directory/2.jpg"><br />
<img src="directory/3.jpg"><br /></td>
<td><img src="directory/4.jpg"><br />
<img src="directory/5.jpg"><br />
<img src="directory/6.jpg"></td>
<td>
...
etc. Then I can just copy the code into my site and stuff.
I'll customise the code so it'll work better (include HTML formatting). I just need to know how to count with PHP.
And I also need to know how to end the table column/row every few pictures. In the sample I used 3 per TD, but I'd probably do five. And I need to separate it into pages, e.g. Page: 1 2 3 4 5 6 7 8 9 10 links on the bottom.
Thanks!