Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
$erg = db_query("SELECT posts, xic_user.id, xic_grundrechte.name as recht_name, regist, xic_user.name FROM xic_user LEFT JOIN xic_grundrechte ON xic_user.recht = xic_grundrechte.id $sql_search ORDER by recht,xic_user.posts DESC LIMIT ".$anfang.",".$limit);
$erg = db_query("SELECT posts, xic_user.id, xic_grundrechte.name as recht_name, regist, xic_user.name, uf1.val AS feld1, uf2.val AS feld2 FROM xic_user LEFT JOIN xic_grundrechte ON xic_user.recht = xic_grundrechte.id LEFT JOIN xic_userfields uf1 ON xic_user.id = uf1.uid AND uf1.fid = ID LEFT JOIN xic_userfields uf2 ON xic_user.id = uf2.uid AND uf2.fid = ID2 $sql_search ORDER by recht,xic_user.posts DESC LIMIT ".$anfang.",".$limit);
$ar = array ( 'NAME' => $row->name, 'RANG' => userrang($row->posts,$row->id), 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name );ungefähr so abändern
$ar = array ( 'NAME' => $row->name, 'RANG' => userrang($row->posts,$row->id), 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name, 'FELD1' => $row->feld1, 'FELD2' => $row->feld2 );natürlich können treffendere Namen gewählt werden. Dann können {FELD1} und {FELD2} im Template genutzt werden.