Re: [php-list] grouping database results in pagination

2006-07-20 Thread Bob Sawyer
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

Re: [php-list] grouping database results in pagination

2006-07-20 Thread Pete
In message <[EMAIL PROTECTED]>, Bob Sawyer <[EMAIL PROTECTED]> writes >I'm dealing with a situation where I can potentially have over 3000 >results to display from a database. I'm successfully paginating the >results, 10 at a time, but don't want to display 300+ page links at the >bottom. > >How ca

Re: [php-list] grouping database results in pagination

2006-07-20 Thread Joseph Gutin
On 7/20/06, Bob Sawyer <[EMAIL PROTECTED]> wrote: > I'm dealing with a situation where I can potentially have over 3000 > results to display from a database. I'm successfully paginating the > results, 10 at a time, but don't want to display 300+ page links at the > bottom. > > How can I group the

[php-list] grouping database results in pagination

2006-07-20 Thread Bob Sawyer
I'm dealing with a situation where I can potentially have over 3000 results to display from a database. I'm successfully paginating the results, 10 at a time, but don't want to display 300+ page links at the bottom. How can I group the pages to show, for example, the first 10 pages, followed by a

[php-list] phplist

2006-07-20 Thread mrhemant.sharma
hi, all i m new in this field kindly any new infirmation send me hemant Yahoo! Groups Sponsor ~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/HKFolB/TM -

[php-list] Re: Shopping Cart - Activation

2006-07-20 Thread Herink Tomáš
It is not so easy to answer. I suppose you have all your goods in database. So you can add a good to a shopping cart by adding an index of it to an array, for example. To do so, you have to se up an action element (button, javascript text/image) which adds ID to an array and send it via POST...

[php-list] Re: get username from IIS

2006-07-20 Thread C.P. Web Designs
Basically, the following should work, although not fool proof. if(! empty($_SERVER['PHP_AUTH_USER'])) echo $_SERVER['PHP_AUTH_USER']; else echo "Not Logged in"; See http://us3.php.net/manual/en/features.http-auth.php for full info on the topic.