diff --git a/dashboard.php b/negozioVirtuale/dashboard.php
similarity index 100%
rename from dashboard.php
rename to negozioVirtuale/dashboard.php
diff --git a/globals.php b/negozioVirtuale/globals.php
similarity index 100%
rename from globals.php
rename to negozioVirtuale/globals.php
diff --git a/login.php b/negozioVirtuale/login.php
similarity index 100%
rename from login.php
rename to negozioVirtuale/login.php
diff --git a/logout.php b/negozioVirtuale/logout.php
similarity index 100%
rename from logout.php
rename to negozioVirtuale/logout.php
diff --git a/negozio_online.sql b/negozioVirtuale/negozio_online.sql
similarity index 100%
rename from negozio_online.sql
rename to negozioVirtuale/negozio_online.sql
diff --git a/register.php b/negozioVirtuale/register.php
similarity index 100%
rename from register.php
rename to negozioVirtuale/register.php
diff --git a/sondaggio/sondaggio.php b/sondaggio/sondaggio.php
new file mode 100644
index 0000000..9645bb1
--- /dev/null
+++ b/sondaggio/sondaggio.php
@@ -0,0 +1,113 @@
+
+
+
+
+
+ Sondaggio
+
+
+
+
+
+Classifica preferenze";
+ $query="SELECT * FROM riviste ORDER BY preferenze desc";
+ $ris=@mysqli_query($conn, $query);
+ $n=@mysqli_num_rows($ris);
+ for ($i=0;$i<$n;$i++) {
+ $riga = @mysqli_fetch_array($ris);
+ echo $riga['nome']." ".$riga['preferenze']."
";
+ }
+} else {
+ ?>
+
+
+Sondaggio
+
+
+
+
+
+
diff --git a/sondaggio/sondaggio.sql b/sondaggio/sondaggio.sql
new file mode 100644
index 0000000..2971361
--- /dev/null
+++ b/sondaggio/sondaggio.sql
@@ -0,0 +1,67 @@
+-- phpMyAdmin SQL Dump
+-- version 4.6.5.2
+-- https://www.phpmyadmin.net/
+--
+-- Host: localhost
+-- Creato il: Mag 25, 2017 alle 08:47
+-- Versione del server: 10.1.22-MariaDB
+-- Versione PHP: 7.1.5
+
+SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
+SET time_zone = "+00:00";
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8mb4 */;
+
+--
+-- Database: `sondaggio`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Struttura della tabella `abbonati`
+--
+
+CREATE TABLE `abbonati` (
+ `Codice` int(5) NOT NULL,
+ `voto` int(1) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+--
+-- Dump dei dati per la tabella `abbonati`
+--
+
+INSERT INTO `abbonati` (`Codice`, `voto`) VALUES
+(100, 1),
+(200, 0),
+(300, 0),
+(400, 0);
+
+-- --------------------------------------------------------
+
+--
+-- Struttura della tabella `riviste`
+--
+
+CREATE TABLE `riviste` (
+ `nome` varchar(50) NOT NULL,
+ `preferenze` int(11) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+--
+-- Dump dei dati per la tabella `riviste`
+--
+
+INSERT INTO `riviste` (`nome`, `preferenze`) VALUES
+('Altroconsumo', 1),
+('Quattroruote', 0),
+('Topolino', 0),
+('Marrazzo', 0);
+
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;