prepare("SELECT identity FROM pending_tc WHERE mac_addr=?"); $res->execute(array($addr)); $row = $res->fetch(); if (!$row) { die("No pending session for the specified MAC address"); } $identity = $row[0]; ?>
Failed to update user account.
"; } else { $res = $db->prepare("DELETE FROM pending_tc WHERE mac_addr=?"); $res->execute(array($addr)); echo "Terms and conditions were accepted.
"; } } ?>