diff options
| author | James Atkinson <thefinn@users.sourceforge.net> | 2001-06-21 03:20:37 +0000 |
|---|---|---|
| committer | James Atkinson <thefinn@users.sourceforge.net> | 2001-06-21 03:20:37 +0000 |
| commit | 6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2 (patch) | |
| tree | fd557329f27ccde5ab042424054467c6076327ec /phpBB/includes/page_header.php | |
| parent | 8276d5728c8ab62d788d152a1e2eddc300b70cfa (diff) | |
| download | forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.tar forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.tar.gz forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.tar.bz2 forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.tar.xz forums-6e9bc6b0fccd529904d7e4ccc1e04c4c0c5967e2.zip | |
Working on getting Oracle functional. Almost there, need to deal with the 'AUTO INCREMENT' issue
git-svn-id: file:///svn/phpbb/trunk@520 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/page_header.php')
| -rw-r--r-- | phpBB/includes/page_header.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php index bd22993a4e..0864aeeea3 100644 --- a/phpBB/includes/page_header.php +++ b/phpBB/includes/page_header.php @@ -86,11 +86,15 @@ if(!$result) $logged_online = 0; $guests_online = 0; -while($row = $db->sql_fetchrow($result)) + +$row = $db->sql_fetchrowset($result); +$num_rows = $db->sql_numrows($result); +for($x = 0; $x < $num_rows; $x++) { - if($row['session_logged_in']) + + if($row[$x]['session_logged_in']) { - $userlist_ary[] = "<a href=\"".append_sid("profile." . $phpEx . "?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . "\">" . $row['username'] . "</a>"; + $userlist_ary[] = "<a href=\"".append_sid("profile." . $phpEx . "?mode=viewprofile&" . POST_USERS_URL . "=" . $row[$x]['user_id']) . "\">" . $row[$x]['username'] . "</a>"; $logged_online++; } else @@ -98,6 +102,7 @@ while($row = $db->sql_fetchrow($result)) $guests_online++; } } + $userlist = ""; for($i = 0; $i < $logged_online; $i++) { |
