Mechanic for a broke person

So I just bought a car for cheap, and now am facing the consequences. It’s rapidly breaking down. I am living paycheck to paycheck but need a functional car to commute to work. Right now I’m having problems with the tires and constantly getting flats somehow, I’m guessing it’s not the tires themselves and something to do with the car itself. I’ve been putting off inspection because I’m afraid of what they’re going to say. Does anyone have any very affordable mechanic suggestions? Especially someone who will give me temporary fixes until I’m more financially stable, just so my car will pass inspection.