=1){ ?> "; $rowpage2=getPageDetails($rowcat["pageid"]); $hreflink="catalog.php?pagename=".$rowpage2["pagename"]."&category=".$category."&subcategory=".$rowcat["menuname"]; echo ""; if ($col<=3) echo""; $col++; if ($col>=5){ echo ""; echo ""; $col=1; } } ?>