variable increment doesn't work
<p>When I launch my web page, increment doesn't work correctly!</p>

<p>It should go like this: <code>$i = from 1 to x (0,1,2,3,4,5,6 etc..)</code>.<br>
But instead it jumps over every step giving result of <code>(1,3,5,7 etc..)</code>.</p>

<p>Why is this code doing this?</p>

<pre><code>&lt;ul class="about"&gt;
        &lt;?php
            $result = mysql_query("SELECT * FROM info WHERE id = 1");

            while ($row = mysql_fetch_assoc($result))
            {
                $bioText = $row['bio'];
            }

            $endBioTxt = explode("\n", $bioText);

            for ($i=0; $i &lt; count($endBioTxt);)
            {
                if (checkNum($i) == true)
                {
                    echo "&lt;li class='left'&gt;&lt;div&gt;".$endBioTxt[$i]."&lt;/div&gt;&lt;/li&gt;";
                    echo $i;
                }
                else
                {
                    echo "&lt;li class='right'&gt;&lt;div&gt;".$endBioTxt[$i]."&lt;/div&gt;&lt;/li&gt;";
                    echo $i;
                }
                $i++;
            }


            // Function to check if number is prime
            function checkNum($num){
              return ($num % 2) ? TRUE : FALSE;
            }

        ?&gt;
    &lt;/ul&gt;
</code></pre>

<p>Output:</p>

<blockquote>
  <p>Sometext!(right side)<br>
  0<br>
  1<br>
  Sometext2!(right side)<br>
  2<br>
  3<br>
  ...</p>
</blockquote>
