1. <?php
  2. error_reporting(E_ALL);
  3. //HTML StandAlone
  4. include 'add.html';
  5. //HTML StandAlone
  6.  
  7. if (@$_GET['write'] == "1") {
  8. //MySQL ftw :>
  9. mysql_connect("localhost","asdasdasdasdasd","asdasdasdasd");
  10. mysql_select_db("mymaker");
  11.  
  12. //Deklarationen
  13. $sql = "INSERT INTO "
  14. ."News(ID,Titel,Datum,Inhalt) "
  15. ."VALUES "
  16. ."('', '".htmlspecialchars(mysql_real_escape_string($_POST['titel']))."', "
  17. ."NOW(), '".htmlspecialchars(mysql_real_escape_string($_POST['inhalt']))."');";
  18.  
  19. //Ausführung
  20. mysql_query($sql);
  21. }
  22. else {
  23. }
  24.  
  25. ?>