Changeset 32 for branches/3/frontend.php


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

Oprava chyb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3/frontend.php

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