Prova così:

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