<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1041019" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1041019</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Sorry this reply is a little</title>
    <link>https://www.webmaster-forums.net/web-database-development/how-can-i-display-database-query-results-one-page-and-use-next-button-brows#comment-1229822</link>
    <description> &lt;p&gt;Sorry this reply is a little late.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Would I have one MySQL query that has more than one LIMIT clause, or would I have a different query that is executed on different pages?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You would use the same query, but change the parameters. See the way our &lt;a href=&quot;http://www.webmaster-forums.net/recent&quot;&gt;Recent page&lt;/a&gt; works, try clicking through &lt;a href=&quot;http://www.webmaster-forums.net/recent?page=4&quot;&gt;several pages&lt;/a&gt;. See the &lt;code&gt;page=4&lt;/code&gt; parameter? That&#039;s how Drupal works out which records to display.&lt;/p&gt;
&lt;p&gt;It&#039;s a case of knowing how many records to display per page, then using the SQL &lt;code&gt;SELECT COUNT(*) FROM tablename;&lt;/code&gt;, &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/select.html&quot;&gt;LIMIT&lt;/a&gt; and some maths. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Note: with &lt;code&gt;LIMIT&lt;/code&gt; you can specify a start and an end row, for example:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;SELECT description FROM tablename LIMIT 10, 50;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
will get rows 10 to 50 (returning a total of 40 rows). Get it? &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 27 Apr 2008 23:51:13 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1229822 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Would I have one MySQL query</title>
    <link>https://www.webmaster-forums.net/web-database-development/how-can-i-display-database-query-results-one-page-and-use-next-button-brows#comment-1229608</link>
    <description> &lt;p&gt;Would I have one MySQL query that has more than one LIMIT clause, or would I have a different query that is executed on different pages? I don&#039;t understand how to use one instance of a browse/search page and provide links for the different pages of search results.&lt;/p&gt;
&lt;p&gt;For example,&lt;/p&gt;
&lt;p&gt;Would I have pages called search_results1.php, search_results2.php etc with a query on each that returns records using LIMIT?&lt;/p&gt;
&lt;p&gt;Or would I make use of something similar to this:&lt;/p&gt;
&lt;p&gt;search_results.php?username=yuyuiy&amp;amp;nlocation=tyutuy to use in the query but only using one search results page?&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Apr 2008 08:20:32 +0000</pubDate>
 <dc:creator>drew22299</dc:creator>
 <guid isPermaLink="false">comment 1229608 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>MySQL&#039;s LIMIT option can be</title>
    <link>https://www.webmaster-forums.net/web-database-development/how-can-i-display-database-query-results-one-page-and-use-next-button-brows#comment-1229593</link>
    <description> &lt;p&gt;MySQL&#039;s LIMIT option can be used for this.  Just like you can use it to limit results, you can use it to show rows that aren&#039;t at the beginning of the result set.&lt;/p&gt;
&lt;p&gt;For example, just adding &#039;LIMIT 10&#039; to the end of a query would show the first 10 results.  Appending &#039;LIMIT 11,10&#039; will show 10 results, starting from the 11th, or the next 10 results.  Appending &#039;LIMIT 21,10&#039; will show the third set of 10, and so on.&lt;/p&gt;
 </description>
     <pubDate>Sun, 13 Apr 2008 21:38:58 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1229593 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
