Re: [PHP] Pagination?

2010-06-09 Thread Sharl.Jimh.Tsin
yes,LIMIT for mysql is useful. Best regards, Sharl.Jimh.Tsin 2010/6/8 Ashley Sheridan : > On Tue, 2010-06-08 at 11:37 -0300, Paul Halliday wrote: > >> I just spent the last 1/2 hour looking at many different solutions for >> this. Is there a universal favorite? >> >> Thanks. >> > > > It depends

Re: [PHP] Pagination?

2010-06-08 Thread Ashley Sheridan
On Tue, 2010-06-08 at 11:37 -0300, Paul Halliday wrote: > I just spent the last 1/2 hour looking at many different solutions for > this. Is there a universal favorite? > > Thanks. > It depends what you mean by pagination, as there are two parts to it. There is the display of the pagination nav

Re: [PHP] pagination code not incrementing page numbers.

2006-10-23 Thread Chris
Mark wrote: I am using the following code for pagination with php5 and mysql 4.1.x The pages advance by clicking on the "Next" or "Last" link However the url does not advance past this in the url field http://localhost/page.php?pagenum=2 Also the page count does not increase past "--Page 1 of 5

Re: [PHP] Pagination

2005-03-25 Thread Colin Ross
watch out for SQL injection attacks on that one though: what if the 'user' went to "page.php?start=1;SELECT * from `mysql`; On Thu, 24 Mar 2005 22:55:01 +0100, pavel <[EMAIL PROTECTED]> wrote: > > I am wanting to paginate records from a MySQL Database. > > I want there to be 5 records on a page,

Re: [PHP] Pagination

2005-03-24 Thread pavel
> I am wanting to paginate records from a MySQL Database. > I want there to be 5 records on a page, on multiple pages. example for selecting page of records from mysql table: $sql=sprintf(" SELECT SQL_CALC_FOUND_ROWS * FROM table LIMIT %d, %d", $position*$records, $records

RE: [PHP] Pagination

2005-03-23 Thread Chris W. Parker
Marquez Design on Wednesday, March 23, 2005 12:19 PM said: > I am wanting to paginate records from a MySQL Database. > I want there to be 5 records on a page, on multiple pages. > > Can someone point me in the right direction or show me a way to do > this? > > I c

Re: [PHP] Pagination

2005-03-23 Thread John Nichel
Please send replies to the list. [EMAIL PROTECTED] wrote: I've been working on this same project for one of my pages, and it seems relatively straight forward if you are just using a full set of records to paginate, but if you are using a filtered set (or search results) then it becomes a bit mo

Re: [PHP] Pagination

2005-03-23 Thread John Nichel
Marquez Design wrote: Hello all, I am wanting to paginate records from a MySQL Database. I want there to be 5 records on a page, on multiple pages. Can someone point me in the right direction or show me a way to do this? I can get five records on a page with a LIMIT statement, however, I can not ge

Re: [PHP] Pagination need help

2004-11-04 Thread Mike
on 11/3/04 11:22 PM, Scott McWhite at [EMAIL PROTECTED] wrote: > Does anyone have sample code for using an HTML search form with pagination? Scott, I followed this tutorial and it helped me accomplish what you are trying to do. http://www.phpfreaks.com/tutorials/43/0.php Good luck. +-

Re: [PHP] Pagination need help1)

2004-11-04 Thread Sebastiano Cascione
Use 2 queries. 1) SELECT * FROM cars WHERE ... ORDER BY... "; 1) SELECT * FROM cars WHERE ... ORDER BY... LIMIT $record_x_page OFFSET $page"; With the firsth query print pages numbers at the bottom of the html page. With the second one print the records list. Every time you click on the page nu

Re: [PHP] Pagination need help

2004-11-03 Thread Jason Wong
On Thursday 04 November 2004 04:22, Scott McWhite wrote: > function works fine with one exception. Example of my problem: searchterm > typed in the html search form equals “ford”, in the database there are 2000 > fords, the first page displays 20 fords and then the next page forgets that > we are

Re: [PHP] Pagination & MSSQL

2004-03-09 Thread Richard Davey
Hello Alex, Tuesday, March 9, 2004, 3:11:54 PM, you wrote: AH> I have searched for some references on pagination using mssql but have come AH> up empty. AH> I have looked at the tutorials on Zend and just about everywhere else but AH> unfortunately they all use LIMIT in the sql statement and the

RE: [PHP] Pagination Part 2

2003-03-13 Thread Ford, Mike [LSS]
> -Original Message- > From: conbud [mailto:[EMAIL PROTECTED] > Sent: 12 March 2003 19:12 > > > Hi, Ive been trying to get this to work but I keep getting this error > > Parse error: parse error, unexpected $ in > /home/conbud/nrlug/test3.php > on line 72 > > line 72 is just the endin

Re: [PHP] Pagination Part 2

2003-03-12 Thread Jonathan Pitcher
You are mixing and matching your If statements. if () else AND if () { } else { } Be consistent. It looks like if you close the { tags your code should work ok.} Hope this helps, Jonathan Pitcher On Wednesday, March 12, 2003, at 01:11 PM, conbud wrote: Hi, Ive been trying to get this

Re: [PHP] pagination help

2003-03-09 Thread Kevin Waterson
This one time, at band camp, "Denis L. Menezes" <[EMAIL PROTECTED]> wrote: > Hello friends. > Can someone give me a link to some help files? http://www.phpbuilder.com/columns/rod20001214.php3 Kevin -- __ (_ \ _) )