for($i=1;$i<5;$i++)
{

UPDATE tabella$i SET mattino='N', pomeriggio='N', giornata='N', motivo=NULL WHERE mese=%s

}