December 22nd, 2010, 07:43 AM
Display recordset in a fixed size div
Hi I have a fixed size div with a width of 771px height of 546px.
It is a book as seen here: link
On the left page i have a recordset which displays fine.
My question is that i want to add more products to the database so of course the recordset is goin to get bigger. I would like to loop through the records until it gets to the bottom of the left page and then the rest of the records be displayed on the right page of the book.
Is this possible? Can anyone advise on how to do this please?
January 3rd, 2011, 08:14 AM
You have to calculate how much records can be displayed in a page and then put the condition accordingly. It may be something like following:
- if record_number >= 30 then
- DIV tag for page on right
- end if