diff --git a/pdo/classifica_pazienti/result.php b/pdo/classifica_pazienti/result.php
deleted file mode 100644
index 863be9e..0000000
--- a/pdo/classifica_pazienti/result.php
+++ /dev/null
@@ -1,70 +0,0 @@
-";
-
- $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
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pdo/classifica_pazienti/index.php b/pdo/lista_squadre/index.php
similarity index 77%
rename from pdo/classifica_pazienti/index.php
rename to pdo/lista_squadre/index.php
index a7c8338..f2da5fb 100644
--- a/pdo/classifica_pazienti/index.php
+++ b/pdo/lista_squadre/index.php
@@ -4,7 +4,7 @@ error_reporting(E_ALL);
ini_set('display_errors', 1);
$host = "192.168.1.20";
-$database = "ospedale";
+$database = "tiro_piattello";
$user = "pdo";
$password = "";
@@ -14,7 +14,7 @@ try {
$connection = new PDO("mysql:host=$host;dbname=$database", $user, $password);
echo "Connected successfully
";
- $prepare = $connection->prepare("SELECT id, cognome, nome FROM medici");
+ $prepare = $connection->prepare("SELECT id, nome, sede FROM squadra");
$prepare->execute();
if ($prepare->rowCount() > 0) {
$datiMedici = $prepare->fetchAll();
@@ -38,12 +38,12 @@ try {
- Ricerca Pazienti per Medico
+ Ricerca Squadra