Thanks again for the help, here's the code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><script language="Javascript"><!--if (screen.width > 800) {document.location = "1024menu.php";}//--></script><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Menu</title><link rel=stylesheet href="inc/css.css"><script src="inc/script.js"></script><div id="curscroll" style="position:absolute;visibility:hidden"></div></head><body topmargin="0" leftmargin="0" bgcolor="#ABA99A" scroll=yes><table border="0" width=150><img src=img/menulogo.gif border=0><tr><td width=100%><a href="index.php" class="menulink" target="mainFrame" class=&{ns4class};><img src=img/butlet.gif border=0>Home/Main Page</a><br></td></tr><?include "cfunc.php";loadbox('header'); //Get all categories code $file=file("$itemsdb");$sl=0; while(list(,$value)=each($file)){ list($fid,$fkieu,$fmenhgia,$fgia,$fdes,$fviews,$fngay,$factive,$fvote,$fimg,$finfo,$fco,$fdaban,$fcat,$blank)=split( "\|", $value); $done=false; for($k=0;$k<sizeof($catsarr);$k++){ if($fcat==$catsarr[$k]) $done=true; } if($done==false) { $catsarr[$sl]=$fcat; $sl++; echo "<tr><td width=100%><a href=\"main.php?act=viewcat&catname=$fcat\" class=\"menulink\" target=\"mainFrame\" class=&{ns4class};><img src=img/butlet.gif border=0>$fcat</a></td></tr>"; } }loadbox('footer');?><tr><td width=100%><a href="index.php" target="mainFrame" class="menulink" class=&{ns4class};><img src=img/butlet.gif border=0><img src=img/butlet.gif border=0><?=$lang[17];?></a></td></tr><tr><td width=100%><a href="menu.php" class="menulink" class=&{ns4class};><img src=img/butlet.gif border=0>menu</a><br><br><br><br><br><br><br><br><br><br></td></tr></table></body></html><!-- End header -->