<?


include "../classes/db.class.php";

$db = new db();

$res = $db->Update('emails',['name','email','event_types','farm_id'],[$_GET['name'],$_GET['email'],$_GET['event_type'],$_GET['farm_id']],"record_id = {$_GET['email_id']}");


if ($res) {
    echo 1;
} else {
    echo 0;
}
