Salve a tutti, ho un problema: dovrebbe essere eseguita una query ma non funziona e non mi appare nessun messaggio di errore.

Ho 3 diversi file:

connection.php
Codice PHP:
<?php

$host 
"localhost";
$name "database";
$user "root";
$pass "";

$db "";

try
{
    
$db mysql_connect ($host$user$pass);
    
mysql_select_db ($name$db);
}
catch (
Exception $e)
{
    die (
"Si è verificato un errore durante la connessione al database");
}

?>
index.php
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title></title>
    </head>
    <body>
        <?php

        
include ("classes/objects.php");
        include (
"db/connection.php");

        
$utente = new Utente();
        
$utente->setNick("UnknownSoldier");
        
$utente->setPassword("asoe");
        
$utente->setAvatar("bho");
        
$utente->setSitoweb("www.google.com");
        
$utente->setEmail("thelizard.king@hotmail.it");
        
$utente->setPemail(0);
        
$utente->setNome("Bah");
        
$utente->setCognome("Buh");
        
$utente->setDatanascita(date("aaaa/MM/gg hh:mm:ss"));
        
$utente->setHobby("Musica rock e viaggiare");
        
$utente->setDescrizione("Cazzi mieiiiiiiiiiiiiiiiiiiiiiiii");
        
$utente->setOccupazione("Sre");
        
$utente->setPinf(0);

        
$utente->save ($db);

        
mysql_close ($db);

        
?>
    </body>
</html>
objects.php in cui c'è la classe Utente
Codice PHP:
...
    public function 
save ($db)
    {
        try
        {
            include (
"DFEncryptor.php");

            
$encpassword DFEncryptor::encrypt ($this->password6);
            
mysql_query ("INSERT INTO utenti (nick, password, avatar, dataregistrazione, sitoweb, email, pemail, nome, cognome, " .
            
"datanascita, hobby, descrizione, occupazione, pinf) VALUES ('$this->nick', '$encpassword', '$this->avatar', 'now()', " .
            
"'$this->sitoweb', '$this->email', '$this->pemail', '$this->nome', '$this->cognome', '$this->datanascita', " .
            
"'$this->hobby', '$this->descrizione', $this->occupazione', '$this->pinf')"$db);
        }
        catch (
Exception $e)
        {
            die (
"Errore durante il salvataggio");
        }
    }
... 
In connection.php effettuo la connessione e uso la variabile $db come connessione.
Dopodichè passo $db al metodo save() della classe Utente.
Non viene lanciato alcun errore eppure la tabella MySQL rimane vuota... cos'è che sbaglio?