that worked, with another edit
PHP Code:
$row = "0";
while($grps_categoryinfo = $DB_site->fetch_array($grps_categories))
{
if($row == 0)
{
eval("\$grps_catbits.= \"" . fetch_template("groups_browse_cathead") . "\";");
//reset catname store
$grps_catidstore= $grps_categoryinfo['catid'];
$seperator= TRUE;
}
if($grps_catidstore != $grps_categoryinfo[catid] AND $row != 0)
{
eval("\$grps_catbits.= \"" . fetch_template("groups_browse_catfoot") . "\";");
eval("\$grps_catbits.= \"" . fetch_template("groups_browse_cathead") . "\";");
}
$grps_categoryinfo['title']= stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description']= nl2br(stripslashes($grps_categoryinfo['description']));
$grps_categoryinfo['catname']= stripslashes($grps_categoryinfo['catname']);
eval("\$grps_catbits .=\"" . fetch_template("groups_browse_catbit") . "\";");
if($grps_categoryinfo[catid] != $grps_catidstore)
{
//reset catname store
$grps_catidstore= $grps_categoryinfo['catid'];
}
$row++;
}//now echo the date into the template
eval("\$grps_catbits.= \"" . fetch_template("groups_browse_catfoot") . "\";");
}
was the final code
thank you marco