If Else Not Work in Php Script : I have php code to display information messages returned. But this is not working.
As this is an example of the codes:

    <?php
    if(intval(mysql_num_rows($req2))==0)
    {
    ?>
    (No reply)
    <?php
    }
    else
    {
    ?>
    (<?php echo $dn2['reps']-1; ?> time reply)
    <?php
    }
    ?>

How to fix?