ick bins mal wieder mit nen Problemchen .... vorab ... ich hab die suchfunftion genutzt.
ich möchte gerne das in der online.php nur die leute angezeigt werden ab einen gewissen status ... wie bekomme ich das hin ? ? ?
<?php if (!defined('main')) {die("no direct access");} $dif = date('Y-m-d H:i:s', time() - 60); $abf = "SELECT uid FROM `prefix_online` WHERE uptime > '". $dif."'"; $resultID = db_query($abf); $brk=''; $uid = array(); $guests = 0; $guestn = $lang['guests']; $content=''; while ($row = db_fetch_object($resultID)) { if ($row->uid != 0 AND $brk!=$row->uid) { $name=@db_result(db_query('SELECT name FROM prefix_user WHERE id='.$row->uid),0); $content.= '<img align="absmiddle" src="include/images/icons/online.gif" width="5" height="15" border="0" alt="online"> '; $content.='<a href="index.php?user-details-'.$row->uid.'">'.$name.'</a>'."\n"; $uid[] = $row->uid; } if ($row->uid == 0) { $guests++; } $brk=$row->uid; } $content.='<tr><td></td></tr>'."\n"; $where = (count($uid)>0) ? 'WHERE id NOT IN ('.implode(', ', $uid).')' : ''; $abf2 = 'SELECT * FROM prefix_user '.$where.' ORDER BY llogin DESC LIMIT 0,13'; $erg2 = db_query($abf2); while ($row2 = db_fetch_object($erg2)) { $datum = date('H:i d.m.y',$row2->llogin); $user = $row2->name; $content.='<img align="absmiddle" src="include/images/icons/offline.gif" width="5" height="15" border="0" alt="offline"> <a href="index.php?user-details-'.$row2->id.'" title="'.$lang['lasttimeonline'].$datum.'">'.$user.'</a>'."\n"; } ?> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0"> <?php echo $content; ?> </table>
THX
swenieboy
betroffene Homepage: ogb-clan.com/