0 and par3<1 and display!=1 order by listorder,title limit $limit,1"; } else { $sql="SELECT * FROM $dbtable1 where exnav !='1' and par1=98 and par2=$par2 and par3>0 and par4<1 and display!=1 order by listorder,title limit $limit,1"; } $result=mysql_query($sql); $num=mysql_num_rows($result); $i=0; while ($i < $num) { $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=="General") { $permalinks="$permalinks$suffix"; } if ($id==$pageid) { ?>
  • " title="">
  • 0 and display!=1 order by listorder,title"; } else { $sql="SELECT * FROM $dbtable1 where exnav !='1' and par1=98 and par3=$id and par3=$par3 and par4>0 and display!=1 order by listorder,title"; } $result=mysql_query($sql); $num=mysql_num_rows($result); $i=0; while ($i < $num) { $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=="General") { $permalinks="$permalinks$suffix"; } if ($id==$pageid) { ?>
  • " title="">