Changeset 30 for branches


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

Oprava, adresování tabulek, jména online uživatelů

Location:
branches/3
Files:
2 edited

Legend:

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

    r29 r30  
    2121    $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition;
    2222    $resul = $this->query($this->LastQuery);
     23   // echo $this->error;
    2324   
    2425    $this->LastNumRows = $resul->num_rows;
  • branches/3/frontend.php

    r29 r30  
    5454  { // BEGIN function WriteTranslatedGroups
    5555        global $database;
    56       $Query = $database->select('translationgroup', '*');
     56      $Query = $database->select('TranslationGroup', '*');
    5757      while($DbRow = $Query->fetch_array())
    5858      {
     
    7070  { // BEGIN function WriteOnlineUsers
    7171        global $database;
    72     $Query = $database->select('useronline', '*,count(*) as count_online_user');
     72    $Query = $database->select('UserOnline', '*,count(*) as count_online_user,(SELECT Name FROM User WHERE User.Id = UserOnline.User) as Name');
    7373    if ($database->LastDataSet) {
    7474      echo '<p>'.ONLINE_USERS;
    7575      while($DbRow = $Query->fetch_array())
    7676      {
    77         echo ''.$DbRow['count_online_user'].'';
     77        echo ''.$DbRow['Name'].'';
    7878      }
    7979      echo '</p>';
Note: See TracChangeset for help on using the changeset viewer.