From 7e82049d57fe6cbf636a10dafb3ccd0c8ad839cd Mon Sep 17 00:00:00 2001 From: Francesco Mancuso Date: Sun, 12 Apr 2026 20:37:26 +0200 Subject: [PATCH] Conversione da MySQLi a PDO - pt. 4 --- file/add/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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([