What parameters are you pasing in the link? That will be the telling point of what you are doing wrong. You could pass the search params ( though these are best kept in a session or cookie ) and the offset counter to get the next block of results.

Sorry for top posting.


Sent from my iPod

On Apr 26, 2009, at 4:23, 9el <le...@phpxperts.net> wrote:

I have pagination set up and the number for pages "next" has a link but
the "next" does not. I have experimented with all sorts of
configurations of the code but the only thing that works (and this is
totally "off the wall") is to do this
*$Count* = *mysql_num_rows($results);*
$Count1=*$Count++;* // without this, the "next" does not do the link--- but there is no other $Count1 in the code either in the original page or
the include page.

the script should work even if u replace
$Count1 = $Count++;

There's a NICE video tutorial available on pagination over the internet. You
should watch it.

You are counting the number of rows of a result. And you are asking to
increase the count by 1.   :D

Thats not realistic.

pagination is done with  the help of mySQL's * LIMIT recNUMBER, count*
Look for "Pagination with PHP + MySQL" and watchit


Dont miss this SampsonVideos . PERIOD




PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to