<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Alternating MYSQL table row colour'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Sat, 11 Oct 2008 07:00:24 GMT</pubDate>
<item>
<title>duartec2 said on 2/26/08</title>
<link>http://snipplr.com/view/4177/alternating-mysql-table-row-colour/</link>
<description><![CDATA[ <p>Keep it simple! </p>

<p>$color = '#FFC600';
while($rows=mysql<em>fetch</em>array($result)){
$color = $color == '#FFC600'? '#C6FF00':'#FFC600';</p>

<p>echo "
".$rows['id']."".$rows['name']."".$rows['email']."
";</p>

<p>}</p>
 ]]></description>
<pubDate>Tue, 26 Feb 2008 19:00:03 GMT</pubDate>
<guid>http://snipplr.com/view/4177/alternating-mysql-table-row-colour/</guid>
</item>
</channel>
</rss>