PHP - IF/ELSE not displaying the desired results
<p>In this query in looking for comments, and if there are any comments it should be displayed, if there are'nt any comments it should display No comments yet.</p>

<p>The comments are displayed correctly but the if function to display that there arent any comments is not working.</p>

<pre><code>$comments = mysql_query ("SELECT * FROM comments WHERE post_id = '". $_GET['id']."'");

while ($comment = mysql_fetch_array ($comments)) {

    //If there are'nt any results
    if(mysql_num_rows($comment) &lt; 0 ) {
        echo "No comments yet!";

} else {

    //If there are any results
        echo "&lt;p&gt;" . $comment['comment'] . "&lt;/p&gt;
            &lt;p&gt;&lt;b&gt;" . $comment['author'] . "&lt;/b&gt;, " . date("M j, Y ", strtotime($comment["date"])) . "&lt;/p&gt;";
    }
}
</code></pre>
