i try to disable link after first click but link always enable this my code
**
$kode = md5(uniqid(rand()));
$to = $_GET['f11'];
$headers = "From: rizka.nugroho@omg-indonesia.com
";
$headers .= "Reply-to: $to
";
$pesan = "Klik link berikut untuk verifikasi dan mengaktifkan akun : ";
$pesan .= ROOT."active.php?email=".$_GET['f11']."&kode=$kode&username=".$_GET['f5'];
$a = @mail($to, "Aktivasi Akun Anda", $pesan, $headers);
**
and this active.php
**$username = $_GET['username'];
$con = new mysqli("localhost", "xxxxxxxx", "xxxxxxxxx", "xxxxxxxxxx") or die(mysqli_error());
$d = $con->query("UPDATE login SET kode ='0', aktif='Y' WHERE username='".$username."'") or die (mysqli_error());
if($d) {
echo "Selamat! Member dengan username <strong>".$username."</strong> telah aktif";
} else {
echo "Gagal diaktifkan";
}**
i try update kode to 0 but the link always enable can disable, can you help me