diff --git a/file/add/index.php b/file/add/index.php index 49edec5..13c7a8a 100644 --- a/file/add/index.php +++ b/file/add/index.php @@ -67,7 +67,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Collegamento al DB effettuato, ora facciamo l'inserimento - $insert = "INSERT INTO attori (nome, cognome, data_nascita) VALUES (':nome',':cognome', ':data')"; + $insert = "INSERT INTO attori (nome, cognome, data_nascita) VALUES (:nome, :cognome, :data)"; $stmt = $pdo->prepare($insert); $stmt->execute([