For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2006 > Pagin Idea ???









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Pagin Idea ???
Beshoo

2006-03-21, 9:58 pm

Hi ::
Suppose I have long table about 200 rows:::

Just I want The Next and back idea ???? So I can show them bay "limit
10 "

Duderino82

2006-03-21, 9:58 pm

sorry it's not cleare...you want to show only 10 rows of a big table a
use link to scroll between the other rows?

You could do a query da collects the 200 rows. then fetch the rows 10
by 10 and make a parameter that tells you form which number to which
number display...

Beshoo

2006-03-22, 8:00 am

Yes !!! Duderino82 I want to scroll between them if the user click on
"next" will get the next 10 and if he click back will get previus 10
::: its common usege !!!! but how ???

Colin McKinnon

2006-03-22, 6:58 pm

Beshoo wrote:

> Yes !!! Duderino82 I want to scroll between them if the user click on
> "next" will get the next 10 and if he click back will get previus 10
> ::: its common usege !!!! but how ???


Cut & paste some code (Google suggests Results 1 - 10 of about 1,110,000 for
php pager source.). Or PEAR has a pager. Or RTFM - array_chunk() if its the
PHP manual, or LIMIT if its the MySQL manual

C.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com