I can not get this if statement to work at all. Nothing inside it shows up. Any ideas?
<?
// print page #s out //
if(mysql_num_rows($total)>10)
{
// edit: this shoudl work better -r
$pages=floor((mysql_num_rows($total)-1)/10);
// start page table & init row //
?>
<table class=10 border=0 width="90%" align="center" cellspacing=2 cellpadding=2>
<tr>
<td width="5%">Page:</td>
<td>[<a href="?fr=0&query=<?=$passq?>">1</a>]
<?
for($i=1;$i<($pages+1);$i++)
// add in the query=$passq to make sure it hits the switch
echo "[<a href=\"?fr=" . ($i*10) . "&query=$passq\">" . ($i+1) . "</a>] ";
echo "</td></tr></table>";
}
?>
<?
// print page #s out //
if(mysql_num_rows($total)>10)
{
// edit: this shoudl work better -r
$pages=floor((mysql_num_rows($total)-1)/10);
// start page table & init row //
?>
<table class=10 border=0 width="90%" align="center" cellspacing=2 cellpadding=2>
<tr>
<td width="5%">Page:</td>
<td>[<a href="?fr=0&query=<?=$passq?>">1</a>]
<?
for($i=1;$i<($pages+1);$i++)
// add in the query=$passq to make sure it hits the switch
echo "[<a href=\"?fr=" . ($i*10) . "&query=$passq\">" . ($i+1) . "</a>] ";
echo "</td></tr></table>";
}
?>