diff --git a/pdo/index.php b/pdo/index.php
new file mode 100644
index 0000000..02afd54
--- /dev/null
+++ b/pdo/index.php
@@ -0,0 +1,80 @@
+";
+
+ $prepare = $connection->prepare("SELECT cognome, nome, note FROM pazienti");
+ $prepare->execute();
+ if ($prepare->rowCount() > 0) {
+ $datiPazienti = $prepare->fetchAll();
+ }
+ $connection = null;
+
+} catch (PDOException $e) {
+ die ("Error!: " . $e->getMessage() . "
");
+}
+?>
+
+
+
+
Cognome | +Nome | +Note | +' . htmlspecialchars($row['cognome']) . ' | '; + echo '' . htmlspecialchars($row['nome']) . ' | '; + echo '' . htmlspecialchars($row['note']) . ' | '; + echo ''; + } + ?> +
---|