Jump to content


Dynamic Repeat Region

  • Please log in to reply
1 reply to this topic

#1 Funky Monk

Funky Monk
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 24 June 2005 - 06:11 AM

I would like to be able to use Dreamweaver to create a dynamic Repeat Region. Rather than just telll Dreamweaver to display a certain amount of records from the database I would like to be able to select a user-defined number of records to display from a drop-down. For example, 'show 10 records', 'show 20 records' etc. How do I do this?

#2 obsidian

  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 24 June 2005 - 12:07 PM

i would recommend simply following a pagination tutorial such as the one linked there, and instead of hard-coding the results per page, allow for a select box to populate that value. of course, you'll have to determine a default value, but if you're at all familiar with PHP, this should be a fairly easy modification.

good luck!
You can't win, you can't lose, you can't break even... you can't even get out of the game.

while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users