SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: "Pages" In PHP

  1. #1
    SitePoint Evangelist
    Join Date
    Dec 2000
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "Pages" In PHP

    Hello,

    On my website (JustForWebmasters) I have a PHP script set up to connect to a MySQL database with articles in it and then retrive the information and output it. If you look, you can see that the whole article displays on one page.

    Well, I'm starting to get articles from authors that are very long or have multiple parts. What I want to do is have something like SitePoint's pages where, in the URL, you can specify what page the article should display.

    How do I do this? Code would be greatly appreciated.
    Corbb O'Connor
    Looking for quality website design or database programming?
    Contact me for more information and a FREE quote!

  2. #2
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Part 7 of this article Building a Database-Driven Web Site Using PHP and MySQL maybe helpful to you.

    John
    Last edited by johnn; Jun 2, 2001 at 09:23.

  3. #3
    SitePoint Evangelist
    Join Date
    Dec 2000
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks johnn!

    However, that did not help.

    I couldn't find it in there.

    If you could provide a direct link, that would be helpful.
    Last edited by JustForWebmasters; Jun 2, 2001 at 08:40.
    Corbb O'Connor
    Looking for quality website design or database programming?
    Contact me for more information and a FREE quote!

  4. #4
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, sorry - it should be part 7. You can click on "print article" just for the purpose of seeing the whole article and search for "Splitting Text into Pages". You may need to read the whole part 7 on understanding regular expressions for splitting pages.

    John


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •