<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Completely customisable PHP pagination class</title>
	<atom:link href="http://www.jaygilford.com/php/completely-customisable-php-pagination-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/</link>
	<description>Numerous articles on PHP, MySQL and Apache files</description>
	<lastBuildDate>Tue, 13 Jul 2010 02:52:06 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jay</title>
		<link>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/comment-page-1/#comment-22</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 13 Jul 2010 02:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaygilford.com/?p=68#comment-22</guid>
		<description>Hi Rob,
Yes you are right, it&#039;s not the most efficient of ways of getting the total number
That said, if you have query caching enabled on your mysql server you shouldn&#039;t actually notice a great deal of difference, since mysql will cache the result sets</description>
		<content:encoded><![CDATA[<p>Hi Rob,<br />
Yes you are right, it&#8217;s not the most efficient of ways of getting the total number<br />
That said, if you have query caching enabled on your mysql server you shouldn&#8217;t actually notice a great deal of difference, since mysql will cache the result sets</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Web Design Talk</title>
		<link>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/comment-page-1/#comment-21</link>
		<dc:creator>Rob Web Design Talk</dc:creator>
		<pubDate>Sat, 03 Jul 2010 10:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaygilford.com/?p=68#comment-21</guid>
		<description>Really good class Jay. Will be using parts of that :) 

Only thing I&#039;d point out is the part where you&#039;re obtaing a total row count from the database (line 100 in your code above). 

This way is fine if you absolutely need to an exact count of the number of rows, but on larger sites will hammer you database. My personal preference would be to cache the row and then store a total row count in a session variable. E.g.

$this-&gt;total_results = ( isset($_SESSION[&#039;rowCount&#039;]) ) ? intval($_SESSION[&#039;rowCount&#039;]) : mysql_num_rows($result); 

Again, if you absolutely need an exact accurate count you&#039;ll need to query the db each time, but I&#039;ve found for the majority of the time a cached result is fine. 

Rob

}</description>
		<content:encoded><![CDATA[<p>Really good class Jay. Will be using parts of that :) </p>
<p>Only thing I&#8217;d point out is the part where you&#8217;re obtaing a total row count from the database (line 100 in your code above). </p>
<p>This way is fine if you absolutely need to an exact count of the number of rows, but on larger sites will hammer you database. My personal preference would be to cache the row and then store a total row count in a session variable. E.g.</p>
<p>$this-&gt;total_results = ( isset($_SESSION['rowCount']) ) ? intval($_SESSION['rowCount']) : mysql_num_rows($result); </p>
<p>Again, if you absolutely need an exact accurate count you&#8217;ll need to query the db each time, but I&#8217;ve found for the majority of the time a cached result is fine. </p>
<p>Rob</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nashkrammer</title>
		<link>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/comment-page-1/#comment-19</link>
		<dc:creator>nashkrammer</dc:creator>
		<pubDate>Wed, 03 Feb 2010 11:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaygilford.com/?p=68#comment-19</guid>
		<description>thank you it worked my link was broken?</description>
		<content:encoded><![CDATA[<p>thank you it worked my link was broken?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/comment-page-1/#comment-18</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 02 Feb 2010 12:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaygilford.com/?p=68#comment-18</guid>
		<description>Did you create an object called $paginator? It sounds like you&#039;ve mis-typed something, or perhaps you&#039;ve got the class out of scope, but with no actual source code i cannot help</description>
		<content:encoded><![CDATA[<p>Did you create an object called $paginator? It sounds like you&#8217;ve mis-typed something, or perhaps you&#8217;ve got the class out of scope, but with no actual source code i cannot help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nashkrammer</title>
		<link>http://www.jaygilford.com/php/completely-customisable-php-pagination-class/comment-page-1/#comment-17</link>
		<dc:creator>nashkrammer</dc:creator>
		<pubDate>Tue, 02 Feb 2010 07:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaygilford.com/?p=68#comment-17</guid>
		<description>$paginator-&gt;link_prefix = &#039;/results/page/&#039;;

i get forbidden error, the url miss the link in it...
parameter is not working, works only when its set inside the pagination.class.php</description>
		<content:encoded><![CDATA[<p>$paginator-&gt;link_prefix = &#8216;/results/page/&#8217;;</p>
<p>i get forbidden error, the url miss the link in it&#8230;<br />
parameter is not working, works only when its set inside the pagination.class.php</p>
]]></content:encoded>
	</item>
</channel>
</rss>
