Ciao ragazzi,
ho scoperto che il problema del mio vecchio post sta tutto in mysql_affected_rows () che non funziona a dovere e non assume nessun valore anche se la conferma della registrazione va a buon fine.

Qualcuno sa spiegarmi cosa sbaglio?

Codice PHP:
function reg_confirm($id){
    global 
$_CONFIG;
    
    
$query mysql_query("
    UPDATE "
.$_CONFIG['table_utenti']."
    SET temp='0'
    WHERE uid='"
.$id."'");
    
    return (
mysql_affected_rows () != 0) ? REG_SUCCESS REG_FAILED


PS:
la query è giusta e se sostituisco mysql_affected_rows con un if funziona tutto