better yet, have a starting page multiplied by the page length

define a constant that gives the page limit then have the receiving page do
some math and do a mysql_data_seek() or array_seek() (which ever you are
using) and then limit the returns by the page limit size?

wouldn't that be the easiest way? if not, please let me know, cuz I am using
that for pagination throughout my site via a couple function calls.

Jim
----- Original Message -----
From: "olinux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 2:58 PM
Subject: Re: [PHP-DB] Passing parameter in Paging


> Aren't all these form solutions making things more
> complex than they need to be? Why not just pass the
> parameters in the URL
>
> Use php to echo out start_at and end_at variables
>
> ie. <A
>
HREF="http://website.com/search.php?keyword=something&start_at=15&end_at=30";
>2</A>
> <A
>
HREF="http://website.com/search.php?keyword=something&start_at=31&end_at=45";
>3</A>
>
> etc.
>
> olinux
>
>
> --- Mihail Bota <[EMAIL PROTECTED]> wrote:
> > Bogdan, in this respect, I have a question: can I
> > pass the values of
> > javascript variables to php variables? if yes, how?
> >
> > Mihai
> >
> > On Fri, 28 Dec 2001, Bogdan Stancescu wrote:
> >
> > > I don't understand why you won't use forms with
> > buttons and hidden controls
> > > since you know about this solution. I have two
> > suggestions along this line:
> > > 1. You probably don't want buttons on the page --
> > you may use image icons
> > > instead (similar to a tape recorder's "play" and
> > "fast forward" for next page
> > > and last page)
> > > 2. If you don't want to use images either, you may
> > use regular links with
> > > "href='javascript:document.nextPage.submit()'"
> > where nextPage would be the form
> > > name with the page forward data -- and so on.
> > >
> > > HTH
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to