I want to set every first and second tr
with a different class.
With my code I only get "odd" on every tr.
Does anyone knew what is wrong?
$rowCount = 0;
if ($rowCount++ % 2 == 1 ) :
echo "<tr class='even'>";
else:
echo "<tr class='odd'>";
endif;