<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Looking for a solid way to let users choose the number of records shown per page</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Looking-for-a-solid-way-to-let-users-choose-the-number-of-records-shown-per-page-79491</link>
        <description></description>
        <pubDate>Wed, 11 Nov 2026 14:24:11 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Looking-for-a-solid-way-to-let-users-choose-the-number-of-records-shown-per-page-79491" rel="self" type="application/rss+xml" />

                <item>
          <title>Looking for a solid way to let users choose the number of records shown per page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233917#post2233917</link>
          <description><![CDATA[<p>Add a "Show All" choice with a value of zero or NULL.</p>]]></description>
          <pubDate>Tue, 06 May 2014 06:57:25 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233917#post2233917</guid>
        </item>
                <item>
          <title>Looking for a solid way to let users choose the number of records shown per page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233916#post2233916</link>
          <description><![CDATA[<p>Thanks a ton!  I'm into this, and I think i'm fairly solid - but one question...<br />How would I handle "show all records" instead of limiting to just 10, 24, 48, etc. per page...?<br /><br />Thanks in advance!<br /><br /></p>
<p>--Jeff</p>]]></description>
          <pubDate>Tue, 06 May 2014 06:18:59 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233916#post2233916</guid>
        </item>
                <item>
          <title>Looking for a solid way to let users choose the number of records shown per page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233905#post2233905</link>
          <description><![CDATA[<p>Thanks fellas!  I think I am on the right path now!  Gonna give this a whirl and see how it goes.  Thanks again!</p>]]></description>
          <pubDate>Mon, 05 May 2014 10:23:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233905#post2233905</guid>
        </item>
                <item>
          <title>Looking for a solid way to let users choose the number of records shown per page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233904#post2233904</link>
          <description><![CDATA[<p>OOOPS!  Sorry, I didn't catch the word USERS.  The code I gave you allows the ADMIN to set the records per page.  To allow the user to dynamically change records per page is a tad more complex.  I did that on a site a while back ... just need to dig up the code.</p>]]></description>
          <pubDate>Mon, 05 May 2014 10:20:36 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233904#post2233904</guid>
        </item>
                <item>
          <title>Looking for a solid way to let users choose the number of records shown per page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233902#post2233902</link>
          <description><![CDATA[<p>Hi,</p>
<p>Here is one example of a way to change the number of records that display.</p>
<p>Above the "load records" code on your page add something like this:</p>
<p><code> $perPage = '10';   //default number of records to display<br /> if (@is_numeric($_REQUEST['perpage'])) <br />    { $perPage =  $_REQUEST['perpage']; }</code></p>
<p>I used the is_numeric function to prevent anything but numbers from being passed in.</p>
<p>Now in you "load records" code add this:</p>
<p><code>'perPage'     =&gt; $perPage,</code></p>
<p>So now you can pass in values in the URL like this:<br /><a href="http://example.com/records.php?perpage=15" rel="nofollow">http://example.com/records.php?perpage=15</a></p>
<p>And 15 records will be displayed.</p>
<p>The last step is to create a form with a dropdown list of the per page options and pass the "perpage" value back to the same page.<br />Hope this helps.</p>
]]></description>
          <pubDate>Mon, 05 May 2014 10:13:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233902#post2233902</guid>
        </item>
                <item>
          <title>Looking for a solid way to let users choose the number of records shown per page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233901#post2233901</link>
          <description><![CDATA[<p>Yes!  That sounds like what i am looking for.  I think I understand how you did that...  I will dig around and see if I can reproduce it!  <br />If you have any additional info - please post, otherwise, i'm going to work on that after lunch!<br />Thanks!  --Jeff</p>]]></description>
          <pubDate>Mon, 05 May 2014 10:08:34 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233901#post2233901</guid>
        </item>
                <item>
          <title>Looking for a solid way to let users choose the number of records shown per page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233900#post2233900</link>
          <description><![CDATA[<p>I just did that yesterday for a product listing.  It can be done many ways, but I chose to have a field in my site config record  called Products Per Page and is a dropdown with 5 10 15 20 etc as choices.  Then, in the product viewer, I changed the per page constant to the variable.</p>
<p><code>  list($productsRecords, $productsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'products',<br />    'where'       =&gt; "category = $pageNum",    <br />    'perPage'     =&gt; <span style="color:#ff0000;">$common_infoRecord['products_per_page']</span>,<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));</code></p>
<p>Is that what you need?</p>
]]></description>
          <pubDate>Mon, 05 May 2014 10:06:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233900#post2233900</guid>
        </item>
                <item>
          <title>Looking for a solid way to let users choose the number of records shown per page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233899#post2233899</link>
          <description><![CDATA[<p>What I'm trying to do is allow site users to choose how many records show per page.  I can set a default of X records per page, but want them to be able to see more if possible, or less...  Is there an easy example of how this is done?  Thanks in advance!</p>]]></description>
          <pubDate>Mon, 05 May 2014 07:02:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233899#post2233899</guid>
        </item>
              </channel>
    </rss>
  