How to do greater (>) and lesser (<) scripts?
<p>I am using this script below.  I need the "next" to show only when there are more than 10 entries.</p>

<p>code:</p>

<pre><code>$fetch = mysql_query("SELECT * FROM table LIMIT $startrow, 10")or
         die(mysql_error());
/*
this next options shows regarldess if there are more than 10 queries or less.  
How can i make it so that it shows only when there are more than 10 queries.
*/ 
echo '&lt;a href="'.$_SERVER['PHP_SELF'].'?startrow='.($startrow+10).'"&gt;Next&lt;/a&gt;';
$prev = $startrow - 10;
//only print a "Previous" link if a "Next" was clicked
if ($prev &gt;= 0)
    echo '&lt;a href="'.$_SERVER['PHP_SELF'].'?startrow='.$prev.'"&gt;Previous&lt;/a&gt;';
</code></pre>
