switch ($n)
{
case 1:
{
$sql = "SELECT comuni.descrizione\n"
. "from comuni\n"
. "where comuni.nome_comune=\"ischia\"";
$ris=mysql_query($sql,$mysql);
if (!$ris)
{
echo "DB ERRORE, QUERY NON CONNESSA AL DATABASE\N";
echo 'MYSQL Error:'.mysql_error();
exit;
}
while($row=mysql_fetch_assoc($ris))
{
?> <br> <center> <?php echo $row['descrizione'];?> </center> <br> <?php
}
}
break;
case 2:
{
$sql = "SELECT comuni.descrizione\n"
. "from comuni\n"
. "where comuni.nome_comune=\"casamicciola terme\"";
$ris=mysql_query($sql,$mysql);
if (!$ris)
{
echo "DB ERRORE, QUERY NON CONNESSA AL DATABASE\N";
echo 'MYSQL Error:'.mysql_error();
exit;
}
while($row=mysql_fetch_assoc($ris))
{
?> <br> <center> <?php echo $row['descrizione'];?> </center> <br> <?php
}
}
break;
case 3:
{
$sql = "SELECT comuni.descrizione\n"
. "from comuni\n"
. "where comuni.nome_comune=\"lacco ameno\"";
$ris=mysql_query($sql,$mysql);
if (!$ris)
{
echo "DB ERRORE, QUERY NON CONNESSA AL DATABASE\N";
echo 'MYSQL Error:'.mysql_error();
exit;
}
while($row=mysql_fetch_assoc($ris))
{
?> <br> <center> <?php echo $row['descrizione'];?> </center> <br> <?php
}
}
break;
case 4:
{
$sql = "SELECT comuni.descrizione\n"
. "from comuni\n"
. "where comuni.nome_comune=\"forio\"";
$ris=mysql_query($sql,$mysql);
if (!$ris)
{
echo "DB ERRORE, QUERY NON CONNESSA AL DATABASE\N";
echo 'MYSQL Error:'.mysql_error();
exit;
}
while($row=mysql_fetch_assoc($ris))
{
?> <br> <center> <?php echo $row['descrizione'];?> </center> <br> <?php
}
}
break;
case 5:
{
$sql = "SELECT comuni.descrizione\n"
. "from comuni\n"
. "where comuni.nome_comune=\"serrara fontana\"";
$ris=mysql_query($sql,$mysql);
if (!$ris)
{
echo "DB ERRORE, QUERY NON CONNESSA AL DATABASE\N";
echo 'MYSQL Error:'.mysql_error();
exit;
}
while($row=mysql_fetch_assoc($ris))
{
?> <br> <center> <?php echo $row['descrizione'];?> </center> <br> <?php
}
}
case 6:
{
$sql = "SELECT comuni.descrizione\n"
. "from comuni\n"
. "where comuni.nome_comune=\"Barano\"";
$ris=mysql_query($sql,$mysql);
if (!$ris)
{
echo "DB ERRORE, QUERY NON CONNESSA AL DATABASE\N";
echo 'MYSQL Error:'.mysql_error();
exit;
}
while($row=mysql_fetch_assoc($ris))
{
?> <br> <center> <?php echo $row['descrizione'];?> </center> <br> <?php
}
}
break;
}
?>