if (!($timestamp_pic)) $timestamp_pic = time(); // Bei Preview-Aufruf nicht aktualisieren if ($prob) echo "
$prob
"; // Fehlermeldung ausgeben ... elseif ($status == 'Preview') { ?>=$date?>
=format($headline)?>
= format($article)?>
Category: = format($category)?>
} elseif ($status == 'Send') { // ... oder eintragen $query = 'INSERT INTO media_content SET date = now(), headline = "'.addslashes($headline).'", article = "'.addslashes($article).'", category = "'.addslashes($category).'", author = "'.addslashes($author).'", timestamp_pic = "'.addslashes($timestamp_pic).'"; '; $sql = mysql_query($query) or die(mysql_error()); unset($status, $headline, $article, $category); // Variablen zum Artikel leeren } ?>