Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Pagination issue

    I'm having a pagination problem with an artist's portfolio site I'm working on.
    I'm using PHP/MySQL and Dreamweaver MX 2004. Each page has navigation that is
    generated from the database. Each page displays a given number of links to
    specific art, 5 for instance. When the database has 10 entries, a 'Next' link
    will display, and the viewer can then view the 6-10 images. The problem I'm
    having is that I need to pass the fact that the viewer is on page 2 (of
    results) in the link to the art image. Currently, if they click a link on the
    second set of resluts, the image will display, but the navigation will reset to
    the first 5 entries. You can see the problem at
    [url]http://www.beckytomato.com/drawings.php[/url] I understand that this is something I
    could/should do with session variables, but I'm not finding good tutorials
    about how to do that in Dreamweaver.

    AlamoMelt Guest

  2. Similar Questions and Discussions

    1. Book Pagination (.indb) Continuous Pagination (HELP!)
      THE DOCUMENT: I've been working on a book with 14 separate documents using the Book feature (.indb) which coordinates the separate chapters...
    2. Pagination
      Hi! I would like to know if there is anyway we could paginate a document with Acrobat 6.0.2 Professional. Thanks a lot!
    3. Pagination help?
      Looking for advice on the best way to do this: We're a daily newspaper with 8 page editors doing layout all at once — each editor has 5-7 pages...
    4. Pagination?
      how to pagination by flex?who can help me?
    5. Pagination with CF
      Hi, I am creating an online magazine. So whenever I call an article out from my MS Access Database, it will display about 1000 characters of text....
  3. #2

    Default Re: Pagination issue

    I think that you need to append the urls for your links with the relevant
    information regarding the pagination. Currently your links simply provide a
    recordID to pull up the image presumably? e.g.

    [url]http://www.beckytomato.com/drawings.php?recordID=3[/url]

    this is fine but as you say it wont provide the information for the PHP to
    paginate your records properly so what you would need is some code to work
    this out and append the links accordingly. The links SHOULD be something
    like this:

    [url]http://www.beckytomato.com/drawings.php?pageNum_bottomNav=1&totalRows_bottomN av=11&recordID=3[/url]

    So in other words you pass the variables pageNum_bottomNav in this case 1
    AND totalRows_bottomNav in this case 11 AND the image recordID.

    To build the links dynamically I suppose something along the lines of this
    would do

    if(isset($_GET['totalRows_bottomNav'])){
    // The var totalRows_bottomNav has been set in the url for this
    page so we need to modify the links accordingly
    $url = "http://www.beckytomato.com/drawings.php?recordID=3"; // The orig
    url for the link
    $url .= "&totalRows_bottomNav=" . $_GET['totalRows_bottomNav']; // Append
    with the totalrows var
    $url .= "&pageNum_bottomNav=" . $_GET['pageNum_bottomNav']; // Append the
    pageNum var
    }

    So the final url for this example SHOULD read
    [url]http://www.beckytomato.com/drawings.php?recordID=3&totalRows_bottomNav=1&page Num_bottomNav=11[/url]


    I havent tested the above code and its late in England now but it should
    hopefully give you an idea as to where the problem lies and how to fix it:)
    There are numerous ways to achieve this and this was just a quick example -
    I hope this helps!


    "AlamoMelt" <webforumsuser@macromedia.com> wrote in message
    news:cv3d6p$qpp$1@forums.macromedia.com...
    > I'm having a pagination problem with an artist's portfolio site I'm
    > working on.
    > I'm using PHP/MySQL and Dreamweaver MX 2004. Each page has navigation
    > that is
    > generated from the database. Each page displays a given number of links to
    > specific art, 5 for instance. When the database has 10 entries, a 'Next'
    > link
    > will display, and the viewer can then view the 6-10 images. The problem
    > I'm
    > having is that I need to pass the fact that the viewer is on page 2 (of
    > results) in the link to the art image. Currently, if they click a link on
    > the
    > second set of resluts, the image will display, but the navigation will
    > reset to
    > the first 5 entries. You can see the problem at
    > [url]http://www.beckytomato.com/drawings.php[/url] I understand that this is
    > something I
    > could/should do with session variables, but I'm not finding good tutorials
    > about how to do that in Dreamweaver.
    >

    Duncan Ellwood Guest

  4. #3

    Default Re: Pagination issue

    Thank you very much!

    I was able to get in running in about 2 minutes because of your help.
    AlamoMelt Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139