'_EMAIL_')) { $db=pg_connect("host=db.imetria.lan dbname=bigpanel port=5432 user=interfejs password=iinteerfeejjs"); $ids = array(); $email = trim(strtolower(strip_tags($e))); $qID = dbQuery("select distinct fk_people_id from emails where LOWER(email)='{$email}'"); while($row=dbRow($qID)) { $ids[] = $row['fk_people_id']; } if(count($ids)>0) { $qID=dbQuery("update people set \"canBeEmailed\"='f' WHERE id in (".join(',',$ids).")"); $row=dbRow($qID); $msg='Adres '.$e.' został wyłączony z grupy adresów, na które wysyłamy informacje związane z badaniem.



'; } else $msg='W bazie panelistów nie występuje adres '.$email.'



'; dbClose(); } else { $msg=join('',file('inc/form.inc.html')); } $body=join('',file('inc/header.inc.html')).$msg.join('',file('inc/footer.inc.html')); print $body; ?>