<?php
$lista = array( 'PY2UFO', 'PY2VB' ); $comma_separated = implode("','", $lista); $sql = "DELETE FROM connections WHERE callsign not in ('$comma_separated')";
echo $sql;
PD9waHAKCgkkbGlzdGEgPSBhcnJheSggJ1BZMlVGTycsICdQWTJWQicgKTsKCSRjb21tYV9zZXBhcmF0ZWQgPSBpbXBsb2RlKCInLCciLCAkbGlzdGEpOwoJJHNxbCA9ICJERUxFVEUgRlJPTSBjb25uZWN0aW9ucyBXSEVSRSBjYWxsc2lnbiBub3QgaW4gKCckY29tbWFfc2VwYXJhdGVkJykiOwoJZWNobyAkc3FsOw==