- Timestamp:
- Oct 14, 2008, 7:16:06 PM (16 years ago)
- Location:
- branches/3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3/class/database.php
r29 r30 21 21 $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition; 22 22 $resul = $this->query($this->LastQuery); 23 // echo $this->error; 23 24 24 25 $this->LastNumRows = $resul->num_rows; -
branches/3/frontend.php
r29 r30 54 54 { // BEGIN function WriteTranslatedGroups 55 55 global $database; 56 $Query = $database->select(' translationgroup', '*');56 $Query = $database->select('TranslationGroup', '*'); 57 57 while($DbRow = $Query->fetch_array()) 58 58 { … … 70 70 { // BEGIN function WriteOnlineUsers 71 71 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'); 73 73 if ($database->LastDataSet) { 74 74 echo '<p>'.ONLINE_USERS; 75 75 while($DbRow = $Query->fetch_array()) 76 76 { 77 echo ''.$DbRow[' count_online_user'].'';77 echo ''.$DbRow['Name'].''; 78 78 } 79 79 echo '</p>';
Note:
See TracChangeset
for help on using the changeset viewer.