Execute($sql); include('linkcat.php'); ?>
EOF) { if ($lastArea != $linkRS->Fields('areaOrder')) { $lastArea = $linkRS->Fields('areaOrder'); while ($indent > 0) { echo ''; $indent-=1; } echo ''; echo ''; echo $linkRS->Fields('areaName'); echo ''; echo '
    '; $indent+=1; } if ($lastCat != $linkRS->Fields('CategoryId')) { $lastCat = $linkRS->Fields('CategoryId'); while ($indent > 1) { echo '
'; $indent-=1; } echo ''; echo $linkRS->Fields('catName'); echo ''; echo '
    '; $indent+=1; } echo ''; echo $linkRS->Fields('name') . ''; if (strlen($linkRS->Fields('description')) > 0 ) { echo ' - '; } echo $linkRS->Fields('description') . '
    '; $linkRS->MoveNext(); } ?>