Changeset 816 for trunk/alert.php
- Timestamp:
- Feb 22, 2015, 11:20:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/alert.php
r700 r816 14 14 15 15 $Output = 'SERVERALERT:'."\n"; 16 16 17 17 $Output .= 'Toto jsou aktuality z projektu wowpreklad.zdechov.net:'."\n"."\n"; 18 18 19 19 $Database = new mysqli($Config['Database']['Host'],$Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']); 20 20 $Database->query('SET NAMES "'.$Config['Database']['Charset'].'"'); 21 22 21 $DbResult = $Database->query('SELECT `News`.`Time`, `News`.`Text`, `News`.`Title`, '. 22 '`User`.`Name` AS `User` FROM `News` JOIN `User` ON `User`.`Id`=`News`.`User` ORDER BY `News`.`Time` DESC '); 23 23 while($Article = $DbResult->fetch_assoc()) 24 24 {
Note:
See TracChangeset
for help on using the changeset viewer.