I output details from db via loop and am building sort of like a tree view. Next to each line I add an image. At the end of the loop, on the last record the image should be different. How do I do that?
Shall I count how many results I will have before output and then somehow count and when the count == total swap image? Sounds right in theory, not quite sure how to implement though...