Forum Moderators: coopster

Message Too Old, No Replies

Split article into multiple pages PHP MYSQL

Need to know how to split article into more than one page.

         

twotwelve

7:48 am on Oct 6, 2006 (gmt 0)

10+ Year Member



Hi all,

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

barns101

10:08 am on Oct 6, 2006 (gmt 0)

10+ Year Member



Take a look at this recent thread [webmasterworld.com].

coopster

7:38 pm on Oct 9, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, twotwelve. Did the link help you with your direction?