prepare($sql); $stmt->execute(array($titel, $inhalt, $lat, $lng)); echo $db->lastInsertId(); header("Location: /"); die(); ?>