View Full Version : Adding different banner/text to pagified page

12-06-2009, 07:50 AM
I am totally new to php and need some help with a problem.

I have a page that is paginated (if that's the right term), 600 records, it's displaying 60 records a page on over 10 or so pages.

My problem is this, how do I put something different on top of each page? For instance a banner or text.

The best example I have of this is http://www.iwearyourshirt.com/calendar/?m=2009-12

on each month/page he has a unique sponsor.

Hope someone knows what I am talking about.


12-06-2009, 09:51 PM
It looks like it is working for you. It changes on different months.

In general, here is how it works:
1. Find out which page you are on (there should be a variable somewhere in your PHP).
2. Name your images imageX.jpg where X is the page.
3. Just display imageX.jpg where you want the sponsor.

There are of course more complex ways, but unless you need something more complex than that, it seems like an easy solution to me.