Buongiorno Kairos grazie per la tua disponibilità, ti copio il codice,
Codice PHP:
<?php
include('../classes/config.php');
?>
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>ik0yuo per radioamatori</title>
<div>
<div>
<?php
$id = $_GET['id'];
// preparazione della query
$sql = "SELECT * FROM country WHERE id = $id";
//esecuzione della quesry
$result = $conn->query($sql);
//se ci sono righe
if ($result->num_rows >0) {
$row = $result->fetch_assoc();
$id = $row['id'];
$name = $row['name'];
}
?>
<strong class="d-block"></strong>
<small><tbody>
<div class="card mb-3" style="width: 100%" >
<nav class="navbar navbar-dark navbar-expand navbar-dark" style="background-color: #7b8a8b;"></nav>
</nav>
<div class="card-body">
<div class="card border-primary mb-3" style="max-width: 50rem;">
<center>
<form action="prova.php">
<label for="lang"></label>
<select name="id" value="id">
<option value="2">Afghanistan</option>
<option value="3">Agalega and St Brandon</option>
<option value="4">Aland Islands</option>
<option value="5">Alaska</option>
<option value="6">Albania</option>
<option value="9">Algeria</option>
<option value="7">American Samoa</option>
<option value="8">Amsterdam and St Paul Islands</option>
<option value="10">Andaman and Nicobar Islands</option>
<option value="11">Andorra</option>
</select>
<input type="submit" value="Submit" />
</form>
<div class="card-body text-primary">
<h5 class="card-title"></h5>
<div class="container">
<table class="table table-bordered">
<tbody>
<tr>
</tr>
<tr>
</tr>
<tr>
<td>Country: <?php echo $row['name'];?></td>
</tr>
<tr>
</tr>
<tr>
<td>DXCC: <?php echo $row['dxcc'];?></td>
</tr>
<tr>
</tr>
<tr>
<td>Prefisso: <?php echo $row['prefisso'];?></td>
</tr>
<tr>
</tr>
<tr>
<td>Continente: <?php echo $row['continent'];?></td>
</tr>
<tr>
</tr>
<tr>
<td>Itu: <?php echo $row['itu'];?></td>
</tr>
<tr>
</tr>
<tr>
<td>Waz: <?php echo $row['cq'];?></td>
</tr>
<tr>
</tr>
<tr>
<td><img src="<?php echo $row['bandiera'];?>" width="100" height="100" border="0" /></td>
</tr>
<tr>
</tr>
<tr>
<br>
</tbody>
</table>
<center>
<script>!function(d,l,e,s,c){e=d.createElement("script");e.src="//ad.altervista.org/js.ad/size=300X250/?ref="+encodeURIComponent(l.hostname+l.pathname)+"&r="+Date.now();s=d.scripts;c=d.currentScript||s[s.length-1];c.parentNode.insertBefore(e,c)}(document,location)</script>
</div>
<br>
</div>
</table>
</div>
</div>
</div>
</tbody></small>
</div>
</a>
</nav>
<div class="col-4">
</div>
</body>
</html>
grazie in anticipo
Carlo