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() . "
"); +} +?> + + + + + HTML + + + + + + + + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + } + ?> +
CognomeNomeNote
' . htmlspecialchars($row['cognome']) . '' . htmlspecialchars($row['nome']) . '' . htmlspecialchars($row['note']) . '
+ + +