diff --git a/home_stmt.php b/home_stmt.php new file mode 100644 index 0000000..16ecc0b --- /dev/null +++ b/home_stmt.php @@ -0,0 +1,79 @@ + + + + + + + + Document + + + + 0){ + echo "

Risultati per: " . htmlspecialchars($cognome_ricercato) . "

"; + echo " + + + + + + + + + "; + //fetch vuol dire vai a prendere + while ($row = mysqli_fetch_assoc($result)) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + + echo "
IDCognomeNomeEmail
" . htmlspecialchars($row['idTessera']) . "" . htmlspecialchars($row['cognome']) . "" . htmlspecialchars($row['nome']) . "" . htmlspecialchars($row['email']) . "
"; + } + else{ + echo "Il cognome inserito non risulta tra l'elenco dei motociclisti"; + } + + // 4. Ricordiamoci di chiudere lo statement + mysqli_stmt_close($stmt); + + } + } + else{ + echo "Inserisci i dati correttamente"; + } + // Ricordarsi di chiudere la connessione + mysqli_close($conn); + ?> + + \ No newline at end of file