The is the field heading Heading for field #2 Heading for field #3
$x=1, $x/2=0.5, intval($x/2)=0 This data is in a white row This field is also white in this row.
$x=2, $x/2=1, intval($x/2)=1 This data is in a gray row. This field is also gray in this row.
$x=3, $x/2=1.5, intval($x/2)=1 This data is in a white row This field is also white in this row.
$x=4, $x/2=2, intval($x/2)=2 This data is in a gray row. This field is also gray in this row.
$x=5, $x/2=2.5, intval($x/2)=2 This data is in a white row This field is also white in this row.
$x=6, $x/2=3, intval($x/2)=3 This data is in a gray row. This field is also gray in this row.
$x=7, $x/2=3.5, intval($x/2)=3 This data is in a white row This field is also white in this row.
$x=8, $x/2=4, intval($x/2)=4 This data is in a gray row. This field is also gray in this row.
$x=9, $x/2=4.5, intval($x/2)=4 This data is in a white row This field is also white in this row.
$x=10, $x/2=5, intval($x/2)=5 This data is in a gray row. This field is also gray in this row.