- Timestamp:
- Oct 14, 2008, 9:16:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3/frontend.php
r32 r33 70 70 { // BEGIN function WriteOnlineUsers 71 71 global $database; 72 $Query = $database->select('UserOnline', ' count(*) as count');72 $Query = $database->select('UserOnline', '*, (SELECT Name FROM User WHERE User.Id = UserOnline.User) as Name'); 73 73 if ($database->LastDataSet) { 74 echo '<p>'.ONLINE_USERS.$DbRow['count']; 75 $Query = $database->select('UserOnline', '*,(SELECT Name FROM User WHERE User.Id = UserOnline.User) as Name'); 74 echo '<p>'.ONLINE_USERS.$database->LastNumRows.'<br />'; 76 75 while($DbRow = $Query->fetch_array()) 77 76 { 78 echo ''.$DbRow['Name'].' <br />';77 echo ''.$DbRow['Name'].''; 79 78 } 80 79 echo '</p>';
Note:
See TracChangeset
for help on using the changeset viewer.