visto che non e numerico dovrai mettere le apici ai valori...

Codice PHP:

<?php

$id1 
= Array ( => '6003C'=> '6006C'=> '6008C'
               
=> '6010C'=> '6011C'=> '6012C' ) ;

$id2 '';

foreach(
$id1 as $key => $value)  {
 
 
$id2 .= "'$value', ";
 
 }
$id3 substr($id20, -2);

$in "IN($id3)";

echo 
" WHERE TB1.IDProgr NOT $in ";

?>
mettici i nomi che ti servono. Tutto perche' hai quella C che serve ad un belino nella tabella.