If I miss work to testify, will the district attorney pay for my loss in wages?

Generally, witnesses, apart from experts retained by the parties, must come to court to testify about matters that they have knowledge of without payment. It is a civic duty imposed upon all citizens in order to insure a just and fair judicial system.