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