Execute('SELECT * FROM categori ORDER BY name ASC'); if (!$arecordSet) print $conn->ErrorMsg(); else while (!$arecordSet->EOF) { if ($arecordSet->fields['cord'] == 0) { $aval[] = $arecordSet->fields; } else { $nval[] = $arecordSet->fields; } $arecordSet->MoveNext(); } include('includes/session.php'); $smarty->caching = $caching; $smarty->assign('categori',@$aval); $smarty->assign('subcat',@$nval); $smarty->display('rsscat.php'); $smarty->display('footer.php'); $conn->Close(); ###################################### ##rsscat.php 1.1.## ###################################### ?>