Changeset 32 for branches


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

Oprava chyb

Location:
branches/3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3/class/database.php

    r31 r32  
    2121    $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition;
    2222    $resul = $this->query($this->LastQuery);
    23     echo $this->error;
     23    if ($this->error <> '') $this->error.': '.$this->LastQuery;
    2424   
    2525    $this->LastNumRows = $resul->num_rows;
  • 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.