diff --git a/assets/Gener_Z.sql b/assets/Gener_Z.sql index a4804e4..6deac24 100644 --- a/assets/Gener_Z.sql +++ b/assets/Gener_Z.sql @@ -36,7 +36,8 @@ CREATE TABLE Utenti( nome VARCHAR(30), cognome VARCHAR(18), email VARCHAR(255) UNIQUE NOT NULL, - password VARCHAR(255) NOT NULL + password VARCHAR(255) NOT NULL, + ruolo VARCHAR(16) DEFAULT 'utente' ); -- 3. INSERIMENTO DATI (INSERT INTO) @@ -78,6 +79,6 @@ INSERT INTO Statistiche_Social (id_fascia, piattaforma, minuti_medi_giornalieri, -- Login utente esempio -- Email: jeevacation@gmail.com -- Password: changeme -INSERT INTO Utenti(nome,cognome,email,password) VALUES -('Jeffrey', 'Epstein', 'jeevacation@gmail.com', '$2y$10$1ZILQ71xxMjaAxDs2A6/Iut8UJfBPEGkeEuZgoIkVDapbNYUACxtW'), -('Andrea', 'Fiorencis', 'andrea@fiorencis.eu','$2y$10$y7fs8u4UOFJW5ds/dO84KumTxG2kh4jCubb1W0mAHzgmBZKRqA8Va'); \ No newline at end of file +INSERT INTO Utenti(nome,cognome,email,password,ruolo) VALUES +('Jeffrey', 'Epstein', 'jeevacation@gmail.com', '$2y$10$1ZILQ71xxMjaAxDs2A6/Iut8UJfBPEGkeEuZgoIkVDapbNYUACxtW', 'gestore'), +('Andrea', 'Fiorencis', 'andrea@fiorencis.eu','$2y$10$y7fs8u4UOFJW5ds/dO84KumTxG2kh4jCubb1W0mAHzgmBZKRqA8Va', 'gestore'); \ No newline at end of file diff --git a/register.php b/register.php new file mode 100644 index 0000000..185e03e --- /dev/null +++ b/register.php @@ -0,0 +1,55 @@ + + + + +
+ + +Registrazione avvenuta con successo! Accedi
"; + } + else{ + echo "Errore: " . $conn->error; + } + } + } + ?> + + + +