UPDATE Part_time SET inizio='$inizio',fine='$fine' WHERE giorno='$giorno' AND username='$userp'

edit. troppo lento.