connect_errno){ echo "SQL error: " . $mysqli->connect_error; exit; } //query to update balances $mysqli->query("UPDATE balances SET balance=balance+$reward,totalbalance=totalbalance+$reward WHERE email='$email'"); //query to update dispenses, I log the virool IP so that any fraud/hack can be detected. for which I have implemented another page. //this is where you can implement another table for use in faucet.php popup $viroolIP = $_SERVER['REMOTE_ADDR']; $viroolC = "virool"; $mysqli->query("INSERT INTO dispenses(amount, dispensed, email, ip, useragent) VALUES('$reward', NOW(), '$email', '$viroolIP', '$viroolC')"); ?>