Re: Passing parameter in Paging

From: Date: Fri, 28 Dec 2001 23:23:03 +0000
Subject: Re: Passing parameter in Paging
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-15253@lists.php.net to get a copy of this message
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" <olnx@yahoo.com> To: <php-db@lists.php.net> 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 <mbota@rana.usc.edu> 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: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#15253) next »