Hey, Pete!

--- Pete <[EMAIL PROTECTED]> wrote:
> so if we are on page 15,
> 10 11 12 13 14 [15] 16 17 18 19 20

I like that... however, running into some implementation problems. Let
me see if I'm getting this right:

for ($i = $current-page-5; $i<= $current_page+5; $i++) {
   $next_start = $start + $display_num;
   if (($i != $current_page)&&($i >=1)&&($i <= $num_pages)) {
      // echo link here
   } else {
      echo $i . ' ';
   }
}

is how I coded it... but I'm getting -5 -4 -3 -2 -1 0 1 2 3 4 5 Next...

?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: php-list@yahoogroups.com
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to