<?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: PHP howto &#8211; Alternating background colours for table rows</title>
	<atom:link href="http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/feed" rel="self" type="application/rss+xml" />
	<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows</link>
	<description>student :: geek :: photographer :: legend</description>
	<lastBuildDate>Thu, 09 Sep 2010 14:06:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Camila Perry</title>
		<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/comment-page-1#comment-278</link>
		<dc:creator>Camila Perry</dc:creator>
		<pubDate>Tue, 27 Jul 2010 15:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.denhamcoote.com/?p=30#comment-278</guid>
		<description>i love poetry because it is a way of expressing my own feelings.,~`</description>
		<content:encoded><![CDATA[<p>i love poetry because it is a way of expressing my own feelings.,~`</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Courtney Lloyd</title>
		<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/comment-page-1#comment-270</link>
		<dc:creator>Courtney Lloyd</dc:creator>
		<pubDate>Thu, 10 Jun 2010 17:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.denhamcoote.com/?p=30#comment-270</guid>
		<description>I also like to make poems and read lots of books that is related to Poetry.~~~</description>
		<content:encoded><![CDATA[<p>I also like to make poems and read lots of books that is related to Poetry.~~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erin Turner</title>
		<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/comment-page-1#comment-260</link>
		<dc:creator>Erin Turner</dc:creator>
		<pubDate>Thu, 29 Apr 2010 01:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.denhamcoote.com/?p=30#comment-260</guid>
		<description>With current advances in stem cell research, it won&#039;t be long before we can find a permanent cure for Type 1 and Type 2 diabetes.       &#039;</description>
		<content:encoded><![CDATA[<p>With current advances in stem cell research, it won&#8217;t be long before we can find a permanent cure for Type 1 and Type 2 diabetes.       &#8216;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/comment-page-1#comment-111</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Sat, 25 Oct 2008 01:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.denhamcoote.com/?p=30#comment-111</guid>
		<description>I tied this on a sample table and all my return data comes out with each item in a column with no highlighting.  Is there something a novice is missing on your example above?</description>
		<content:encoded><![CDATA[<p>I tied this on a sample table and all my return data comes out with each item in a column with no highlighting.  Is there something a novice is missing on your example above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: domce</title>
		<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/comment-page-1#comment-75</link>
		<dc:creator>domce</dc:creator>
		<pubDate>Fri, 12 Sep 2008 09:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.denhamcoote.com/?p=30#comment-75</guid>
		<description>($i++%2) works also.</description>
		<content:encoded><![CDATA[<p>($i++%2) works also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denham Coote</title>
		<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/comment-page-1#comment-39</link>
		<dc:creator>Denham Coote</dc:creator>
		<pubDate>Fri, 15 Aug 2008 09:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.denhamcoote.com/?p=30#comment-39</guid>
		<description>Thanks Mark - Good point.</description>
		<content:encoded><![CDATA[<p>Thanks Mark &#8211; Good point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/comment-page-1#comment-38</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 15 Aug 2008 07:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.denhamcoote.com/?p=30#comment-38</guid>
		<description>Just to remove one more line you can increment $counter like so:

$classname = (++$counter % 2 == 1) ? &quot;dark-div&quot; : &quot;light-div&quot;;

And therefore remove the
$counter++;

Nice and simple thanks.</description>
		<content:encoded><![CDATA[<p>Just to remove one more line you can increment $counter like so:</p>
<p>$classname = (++$counter % 2 == 1) ? &#8220;dark-div&#8221; : &#8220;light-div&#8221;;</p>
<p>And therefore remove the<br />
$counter++;</p>
<p>Nice and simple thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP howto - Database paging (pagination) &#124; Denham Coote</title>
		<link>http://www.denhamcoote.com/php-howto-alternating-background-colours-table-rows/comment-page-1#comment-4</link>
		<dc:creator>PHP howto - Database paging (pagination) &#124; Denham Coote</dc:creator>
		<pubDate>Thu, 26 Jun 2008 09:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.denhamcoote.com/?p=30#comment-4</guid>
		<description>[...] instead wrap this up in a function and return the results.  Another easy modification would be to alternate the background colours, as shown in my previous [...]</description>
		<content:encoded><![CDATA[<p>[...] instead wrap this up in a function and return the results.  Another easy modification would be to alternate the background colours, as shown in my previous [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
