$mod ="update appartamenti SET titolo='$titolo' where id=$_POST['id']"