connect_errno) { echo "Не удалось подключиться к MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } $mysqli->query("SET NAMES `CP1251`"); $query = "SELECT `database` FROM campaigns WHERE id=".$_GET['id']; $result = $mysqli->query($query); $row_db = $result->fetch_assoc(); $query = "INSERT INTO `blacklist` (email,id_db) VALUES ('".$_GET['email']."',".$row_db['database'].")"; $result = $mysqli->query($query); $query = "UPDATE dbs SET `numb`=`numb`-1 WHERE id=".$row_db['database']; $mysqli->query($query); $query = "DELETE FROM ".$row_db['database']."_base WHERE email='".$_GET['email']."'"; $result = $mysqli->query($query); ?>




© Many Mail