0 && par2<1) and pagetype!='forward' order by listorder, id limit $limit,1"; $result=mysql_query($sql); $num1=mysql_num_rows($result); $i=0; while ($i < $num1) { $id=mysql_result($result,$i,"id"); $title=mysql_result($result,$i,"title"); $description=mysql_result($result,$i,"description"); $permalinks=mysql_result($result,$i,"permalinks"); $pagetype=mysql_result($result,$i,"pagetype"); if ($pagetype=="Forward") { $suffix=""; } else { $suffix=".html"; } ?> '; } ?>