Changeset 100 for devel/www/aktuality/index.php
- Timestamp:
- Aug 1, 2008, 2:47:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/www/aktuality/index.php
r96 r100 172 172 173 173 //echo(GetRemoteAddress().','.$_SERVER['HTTP_X_FORWARDED_FOR'].'<br />'); 174 $DbResult = $this->Database->query('SELECT `news`.*, `User`.`Name` FROM `news` LEFT JOIN `User` ON `User`.`Id`=`news`.`User` WHERE `category`='.$Category.' ORDER BY `news`.`id` DESC LIMIT '. $Page*$PerPage.','.$PerPage);174 $DbResult = $this->Database->query('SELECT `news`.*, `User`.`Name` FROM `news` LEFT JOIN `User` ON `User`.`Id`=`news`.`User` WHERE `category`='.$Category.' ORDER BY `news`.`id` DESC LIMIT '.($Page * $PerPage).','.$PerPage); 175 175 while($Row = $DbResult->fetch_array()) 176 176 { … … 193 193 $Output .= '</div>'; 194 194 } 195 $Output .= PagesList('?category='.$Category.'&page=', $Page,$PageMax,$PerPage);195 $Output .= PagesList('?category='.$Category.'&page=', $Page, $PageMax, $PerPage); 196 196 $Output .= '</div>'; 197 197 } else $Output .= 'Nemáte oprávnění.';
Note:
See TracChangeset
for help on using the changeset viewer.