query("UPDATE news SET Title='".db_string($_POST['title'])."', Body='".db_string($_POST['body'])."' WHERE ID='".db_string($_POST['newsid'])."'"); $Cache->delete_value('news'); $Cache->delete_value('feed_news'); } header('Location: index.php'); break; case 'editnews': if (is_number($_GET['id'])) { $NewsID = $_GET['id']; $DB->query("SELECT Title, Body FROM news WHERE ID=$NewsID"); list($Title, $Body) = $DB->next_record(); } } ?>

Title

/>

Body



News archive

query('SELECT n.ID,n.Title,n.Body,n.Time FROM news AS n ORDER BY n.Time DESC');// LIMIT 20 while (list($NewsID, $Title, $Body, $NewsTime) = $DB->next_record()) { ?>
- posted - Edit Delete
full_format($Body) ?>