|
30.03.2006, 21:54
PHP код:
$result = $db->sql_query("SELECT s.uname, u.user_id FROM $prefix"._session." AS s LEFT JOIN $prefix"._users." AS u ON(u.username=s.uname) WHERE s.guest='0'"); $member_online_num = $db->sql_numrows($result); $who_online_now = ""; $i = 1; while ($session = $db->sql_fetchrow($result)) { if ($i < 10) { $who_online_now .= "$i.<A HREF=\"". IPB_DIR . "/index.php?showuser=$session[user_id]\">$session[uname]</a><br>\n"; } else { $who_online_now .= "<A HREF=\"". IPB_DIR . "/index.php?showuser=$session[user_id]\">$session[uname]</a><br>\n"; } $i++; }
|
|