Changeset 33 for branches


Ignore:
Timestamp:
Oct 14, 2008, 9:16:21 PM (16 years ago)
Author:
maron
Message:

chyby

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3/frontend.php

    r32 r33  
    7070  { // BEGIN function WriteOnlineUsers
    7171        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');
    7373    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 />';
    7675      while($DbRow = $Query->fetch_array())
    7776      {
    78         echo ''.$DbRow['Name'].'<br />';
     77        echo ''.$DbRow['Name'].'';
    7978      }
    8079      echo '</p>';
Note: See TracChangeset for help on using the changeset viewer.