Create colorful tables in cake way

In your view follow the way
 
<table>
<?php
$row_count = count($MyFees);
  $x = 1;
 
  while ($x <= $row_count) {
    foreach ($MyFees as $MyFee) {
       if($x%2): $color = "#E9F9AC"; else: $color = "#FF9900"; endif;
           print     "<tr><td style=\"background-color: ".$color."\">"
                . '<strong>'
                . $MyFee['MyFee']['name']
                . ' </strong> your strings'
                . $MyFee['MyFee']['description']
                . ' <br /> can combine around '
                . $MyFee['MyFee']['no_of_login']
                . ' your data. '
                . $MyFee['MyFee']['fee']
                . ' '
                . $MyFee['MyFee']['currency']
                . "</td></tr>\n";
     $x++;      
         }    
   }
?>
</table>