php print different color in rows
<p>I try to print out all user email from table,
but i want odd number print in red
even number print in blue.
how to do this in while loop?</p>

<pre><code>$connect=mysql_connect("localhost", "root", "");
$database=mysql_select_db("phplogin", $connect);

$SQL=mysql_query("SELECT * FROM users");
$num=mysql_num_rows($SQL);
$start=0;

while($start&lt;$num){
    $result_id=mysql_result($SQL, $start, "id");
    $result_email=mysql_result($SQL, $start, "email");

    echo "&lt;b style='color:red'&gt;" . $result_id . $result_email . "&lt;/b&gt;&lt;br/&gt;";
    echo "&lt;b style='color:blue'&gt;" . $result_id . $result_email . "&lt;/b&gt;&lt;br/&gt;";

    $start++;
    }
</code></pre>
