Jump to content


Photo

mysql and php help


  • Please log in to reply
3 replies to this topic

#1 karma_machine

karma_machine
  • Members
  • Pip
  • Newbie
  • 3 posts
  • LocationNew Brunswick, Canada

Posted 01 August 2003 - 11:16 PM

i was wonder how i could show things in a table but only so many at a time
i have <100 things in a database but i need to put them with no more than 40 on a page. could some one tell me how to do that, please.
thanks

#2 holiks

holiks
  • Members
  • PipPipPip
  • Advanced Member
  • 83 posts

Posted 01 August 2003 - 11:35 PM

It\'s called pagination. You want to paginate your results. There are quite a few tutorials out there and maybe this can help you get started..
http://www.phpfreaks...opic.php?t=5383
__________________________________________________________[br]$php = array('..a stack', '...once you pop', '...you don't stop');

#3 karma_machine

karma_machine
  • Members
  • Pip
  • Newbie
  • 3 posts
  • LocationNew Brunswick, Canada

Posted 02 August 2003 - 12:29 AM

when i use that i get the table rows then the table heading after that
even thought i have the code in html for the table header way before the pagination code

#4 holiks

holiks
  • Members
  • PipPipPip
  • Advanced Member
  • 83 posts

Posted 02 August 2003 - 05:41 PM

my code was a basic (incomplete) example...the other replies in that thread gave better examples
__________________________________________________________[br]$php = array('..a stack', '...once you pop', '...you don't stop');




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users