prepare("
INSERT INTO aktien (WKNISIN, user_id, Aktie, kaufdatum, kaufpreis, anzahl)
VALUES (:WKNISIN, :user_id, :Aktie, :kaufdatum, :kaufpreis, :anzahl)
");
$stmt->bindParam(':WKNISIN', $WKNISIN);
$stmt->bindParam(':Aktie', $Aktie);
$stmt->bindParam(':kaufdatum', $kaufdatum);
$stmt->bindParam(':kaufpreis', $kaufpreis);
$stmt->bindParam(':anzahl', $anzahl);
$stmt->bindParam(':user_id', $_SESSION['user_id']);
$stmt->execute();
$data_saved = "true";
} catch (PDOException $e) {
$data_saved = "Fehler: " . $e->getMessage();
}
}
?>
Aktie erfolgreich gespeichert! Sie werden in 5 Sekunden weitergeleitet ...