Forum Moderators: coopster
I'm building an online magazine, using PHP and MYSQL. I am wondering how I can split an article up to display across multiple pages so that longer articles don't seem so long (you'd be able to click page 1, page 2, etc).
Currently in my database I have different fields for title, author, etc. I label the actual article text as 'maintext', so the variable when pulling it out of the database with PHP is $maintext.
I've heard about using explode(), but I can't quite seem to grasp how I can use that concept to then paginate the explode results.
I did a search through these forums and I've seen that some of you have done this in the past, but I couldn't see any code to indicate how you did it.
Any help on this topic would be very much appreciated.
Thanks,
-TIM