Compare commits

...

2 Commits

Author SHA1 Message Date
AndreStork 1cb277d22f Fix campo password in _db_config.php per funzionare su MAMP
(meglio così non c'è neanche una password)
2026-03-31 09:42:55 +02:00
AndreStork b14e09af6d Fix errore SQL (id non trovato) in pagina visualizza_dati 2026-03-31 09:41:08 +02:00
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<?php
$host = "localhost";
$user = "root";
$pass = "root";
$pass = "";
$db = "aeroporto";
$conn = mysqli_connect($host, $user, $pass, $db);
-2
View File
@@ -138,13 +138,11 @@ $query_risultato = mysqli_query($conn, $sql);
<table border="1" style="width:100%; margin-top:20px; text-align:left;">
<tr>
<th>ID</th>
<th>Username</th>
<th>Email</th>
</tr>
<?php while ($riga = mysqli_fetch_assoc($query_risultato)): ?>
<tr>
<td><?php echo $riga['id']; ?></td>
<td><?php echo htmlspecialchars($riga['username']); ?></td>
<td><?php echo htmlspecialchars($riga['email']); ?></td>
</tr>