fork download
  1. <?php
  2.  
  3. $lista = array( 'PY2UFO', 'PY2VB' );
  4. $comma_separated = implode("','", $lista);
  5. $sql = "DELETE FROM connections WHERE callsign not in ('$comma_separated')";
  6. echo $sql;
Success #stdin #stdout 0.04s 52480KB
stdin
Standard input is empty
stdout
DELETE FROM connections WHERE callsign not in ('PY2UFO','PY2VB')