Well I hope you learned your lesson of blowing the cash you made. Controlling your spending is probably the number one most critical thing in this business.
I budget how much I'm going to spend far ahead of time, how much I make doesn't change it much. If I make a shit ton of money in a month I might go blow 1% of it on something and that's about it. Same goes for times when I don't make as much, I might spend slightly less but more or less I stick to my budget and have the luxury of doing so because of all the money saved up from the other weeks/months.
If you base your spending on your earnings in this business you will almost always have problems.
This. Huge key to this business.
Also, have dedicated money to test/lose/learn with. I see people spending their eating money on running a campaign. If you're doing that you're probably making some emotional decisions vs. logical.