Jump to content


Photo

Please help


  • Please log in to reply
3 replies to this topic

#1 Bee

Bee
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 07 March 2006 - 09:42 PM

Hi,

I have a database query written in PHP that returns records from the table and displays them on a webpage. I want to display only a certain number of records and put the remaining records on other pages.

for example: when one does a search on google! if the search returns 50000 results, it only displays some results per page.

i don't know how to explain it any further, but I hope there is some body out there who can help. Even if you point me to a tutorial, i will appreciate it so much.

Thanks,
Bee

#2 XenoPhage

XenoPhage
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts

Posted 07 March 2006 - 09:43 PM

[!--quoteo(post=352627:date=Mar 7 2006, 04:42 PM:name=Bee)--][div class=\'quotetop\']QUOTE(Bee @ Mar 7 2006, 04:42 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I have a database query written in PHP that returns records from the table and displays them on a webpage. I want to display only a certain number of records and put the remaining records on other pages.
[/quote]

You want a paginator. :) Try this : [a href=\"http://tkap.org/paginator/\" target=\"_blank\"]http://tkap.org/paginator/[/a]
--
[a href=\"http://blog.godshell.com\" target=\"_blank\"]XenoPhage[/a]
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Something mysterious is formed, born in the silent void. Waiting alone and unmoving, it is at once still and yet in constant motion. It is the source of all programs. I do not know its name, so I will call it the Tao of Programming.[/quote]

#3 wickning1

wickning1
  • Members
  • PipPipPip
  • Advanced Member
  • 405 posts

Posted 07 March 2006 - 09:45 PM

[a href=\"http://www.phpfreaks.com/tutorial_cat/25/Page-Number--Pagination.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorial_cat/25/P...-Pagination.php[/a]

#4 Bee

Bee
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 08 March 2006 - 03:08 PM

[!--quoteo(post=352630:date=Mar 7 2006, 04:45 PM:name=wickning1)--][div class=\'quotetop\']QUOTE(wickning1 @ Mar 7 2006, 04:45 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
[a href=\"http://www.phpfreaks.com/tutorial_cat/25/Page-Number--Pagination.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorial_cat/25/P...-Pagination.php[/a]
[/quote]


Thank you.
Bee




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users