I'm quite stuck on how I can sell limited tickets I've put this question up before, but I haven't got the right solution.I know I should do my own project, but I really can't seem to find the solution to this.If someone can just help me with this problem that would be great and then I don't have to spent countless hours researching for nothing. The Problem: There are only 50 tickets available. Now, when a person purchases one ticket this there should be only 49 tickets left. Lets say another person purchases two tickets there should be only 47 tickets left. So, after all the tickets are gone it should give out an error message to the user saying that there is no more tickets left. If someone can just put me on the right track that would be really great.