1
deka87
how do I avoid similar terms to appear in the term list - lexikon module
  • 2011/11/18 7:47

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


hi guys,

i use this module called lexikon and it has a page like this to make a ist of terms submitted with some initial letter. however some of the terms are similar ( look there are double "duh" in the list). the code it like this:

while (list( $entryID, $categoryID, $term, $init, $definition, $ref, $url, $uid, $submit, $datesub, $counter, $html, $smiley, $xcodes, $breaks, $block, $offline, $notifypub, $request, $comments ) = $xoopsDB->fetchRow($resultB))
        {
        
        
$eachentry = array();
        
$xoopsModule = XoopsModule::getByDirname("lexikon");
        
$eachentry['dir'] = $xoopsModule->dirname();


        
$eachentry['id'] = intval($entryID);
        
$eachentry['term'] = ucfirst($myts -> makeTboxData4Show( $term ));
        
$eachentry['init'] = $init;
...
}

how do I show only unique
$eachentry['term']
in a list?
Mind anchors