Commit 8fb5cfc7 authored by Bovo Alan Davide's avatar Bovo Alan Davide
Browse files

add credentials and fix sql query

parent 942cc6f9
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -5,10 +5,10 @@
// I dati non vengono persi alla chiusura del browser e sono accessibili da più utenti e dispositivi.
// Questo evita duplicazioni, conflitti e perdita di dati che possono verificarsi usando solo le sessioni.
// Le sessioni sono temporanee e legate al singolo utente, mentre il database centralizza e protegge le informazioni.
$host = 'localhost';
$db   = 'registro_voti';
$user = 'root';
$pass = '';
$host = 'biagio';
$db   = '5h_bovo';
$user = 'alandavide.bovo';
$pass = '123456';
$charset = 'utf8mb4';

$dsn = "mysql:host=$host;dbname=$db;charset=$charset";
+1 −2
Original line number Diff line number Diff line
CREATE DATABASE IF NOT EXISTS registro_voti;
USE registro_voti;
USE 5h_bovo;

CREATE TABLE IF NOT EXISTS voti (
    id INT AUTO_INCREMENT PRIMARY KEY,