visto che non e numerico dovrai mettere le apici ai valori...
mettici i nomi che ti servono. Tutto perche' hai quella C che serve ad un belino nella tabella.Codice PHP:
<?php
$id1 = Array ( 0 => '6003C', 1 => '6006C', 2 => '6008C',
3 => '6010C', 4 => '6011C', 5 => '6012C' ) ;
$id2 = '';
foreach($id1 as $key => $value) {
$id2 .= "'$value', ";
}
$id3 = substr($id2, 0, -2);
$in = "IN($id3)";
echo " WHERE TB1.IDProgr NOT $in ";
?>

Rispondi quotando