Changeset 694 for trunk/alert/index.php
- Timestamp:
- Mar 20, 2010, 8:49:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/alert/index.php
r690 r694 10 10 11 11 echo('SERVERALERT:'."\n"); 12 $DbResult = $db->query('SELECT * FROM Article WHERE Time > DATE_SUB(NOW(), INTERVAL 7DAY) ORDER BY Time DESC LIMIT 5');12 $DbResult = $db->query('SELECT * FROM Article WHERE Time > DATE_SUB(NOW(), INTERVAL 30 DAY) ORDER BY Time DESC LIMIT 5'); 13 13 while($Article = $DbResult->fetch_assoc()) 14 14 { 15 echo('> '.$Html->HumanDate($Article['Time']).' '.$Article['Title']."\n".strip_tags($Article['Content'])."\n\n");15 echo('> '.$Html->HumanDate($Article['Time']).' '.$Article['Title']."\n".strip_tags($Article['Content'])."\n\n"); 16 16 } 17 17
Note:
See TracChangeset
for help on using the changeset viewer.