diff --git a/custom_film_attori.sql b/custom_film_attori.sql index 404f68c..e65d678 100644 --- a/custom_film_attori.sql +++ b/custom_film_attori.sql @@ -3,7 +3,7 @@ -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 --- Creato il: Apr 12, 2026 alle 20:06 +-- Creato il: Apr 12, 2026 alle 21:04 -- Versione del server: 10.4.32-MariaDB -- Versione PHP: 8.2.12 @@ -64,9 +64,8 @@ INSERT INTO `attori` (`id_attore`, `nome`, `cognome`, `data_nascita`) VALUES (23, 'Bud', 'Spencer', '1929-10-31'), (24, 'Lady', 'Gaga', '1986-03-28'), (25, 'Adam', 'Driver', '1983-11-19'), -(26, 'Francesco', 'Mancuso', '2007-02-08'), -(27, 'Massimo', 'Leone', '2026-04-01'), -(28, 'Tom', 'Cruise', '1962-07-03'); +(26, 'Tom', 'Cruise', '1962-07-03'), +(27, 'Al', 'Pacino', '1940-04-25'); -- -------------------------------------------------------- @@ -183,7 +182,8 @@ INSERT INTO `recitare` (`id_attore`, `id_film`, `ruolo`) VALUES (23, 15, 'Protagonista'), (24, 16, 'Protagonista'), (25, 16, 'Protagonista'), -(28, 20, 'Protagonista'); +(26, 20, 'Protagonista'), +(27, 19, 'Protagonista'); -- -- Indici per le tabelle scaricate @@ -223,7 +223,7 @@ ALTER TABLE `recitare` -- AUTO_INCREMENT per la tabella `attori` -- ALTER TABLE `attori` - MODIFY `id_attore` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; + MODIFY `id_attore` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT per la tabella `film` diff --git a/file/actors/index.php b/file/actors/index.php new file mode 100644 index 0000000..2e62347 --- /dev/null +++ b/file/actors/index.php @@ -0,0 +1,99 @@ +getMessage(), (int) $e->getCode()); +} + +// Collegamento al DB effettuato + +$query = "SELECT * FROM attori"; +$stmt = $pdo->prepare($query); +$stmt->execute(); + +?> + + + + + + + + Attori - The NoSpace Cinema + + + + + + +
+
+ +
+ +

The NoSpace Cinema

+
+
+
+ Vedi sorgente pagina + Tutti i film +
+
+
+
+
+
+

Tutti gli attori

+
+
+
+
+
+
+ fetch()) { + $test = false; + ?> +
+ +
+ Nato/a il +
+ +
+ Nessun attore trovato!
"; + } + ?> +
+ + + + + \ No newline at end of file diff --git a/file/add/index.php b/file/add/index.php index 13c7a8a..fbb5030 100644 --- a/file/add/index.php +++ b/file/add/index.php @@ -88,6 +88,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { Aggiungi attore - The NoSpace Cinema + diff --git a/file/favicon.png b/file/favicon.png new file mode 100644 index 0000000..0afc861 Binary files /dev/null and b/file/favicon.png differ diff --git a/file/film/index.php b/file/film/index.php index 036b79b..2b14b46 100644 --- a/file/film/index.php +++ b/file/film/index.php @@ -76,6 +76,7 @@ $stmt->execute([ <?php echo $row["nome"]; ?> - Film - The NoSpace Cinema + diff --git a/file/genere.png b/file/genere.png new file mode 100644 index 0000000..4dc97d3 Binary files /dev/null and b/file/genere.png differ diff --git a/file/genres/index.php b/file/genres/index.php new file mode 100644 index 0000000..d93a7a6 --- /dev/null +++ b/file/genres/index.php @@ -0,0 +1,100 @@ +getMessage(), (int) $e->getCode()); +} + +// Collegamento al DB effettuato + +$query = "SELECT * FROM generi"; +$stmt = $pdo->prepare($query); +$stmt->execute(); + +?> + + + + + + + + Generi - The NoSpace Cinema + + + + + + + +
+
+ +
+ +

The NoSpace Cinema

+
+
+
+ Vedi sorgente pagina + Tutti i film +
+
+
+
+
+
+

Tutti i generi

+
+
+
+
+
+
+ fetch()) { + $test = false; + ?> +
+ +
+ +
+ +
+ Nessun genere trovato!
"; + } + ?> +
+ + + + + \ No newline at end of file diff --git a/file/index.html b/file/index.html index 650c536..e2eac5f 100644 --- a/file/index.html +++ b/file/index.html @@ -7,6 +7,7 @@ The NoSpace Cinema + @@ -47,6 +48,20 @@ +
+ +
+ +

Vedi tutti gli attori

+
+
+ +
+ +

Vedi tutti i generi

+
+
+