Using PHP Increment and Conditional Statement to Alternate Loop Background

You’re incrementing $count twice in every iteration of the loop, the first if will always be false and the second will always be true.