Originariamente inviato da Gian76
Puoi farmi un esempio di codice perchè così non saprei proprio come fare ?
grazie
Una cosa del genere
Codice PHP:
$conf = mysql_query("SELECT ConfermaRegistrazione FROM Utenti WHERE AuthenticationKey = '$AuthenticationKey'");
if(mysql_result($conf,0)!=0) die('Errore, user gia confermato');
//....
// QUERY 1 UPDATE DATABASE CONFERMA REGISTARZIONE
$query1="UPDATE Utenti SET ConfermaRegistrazione = '1' WHERE AuthenticationKey = '$AuthenticationKey'";
$result1=mysql_query($query1);
//....