View Full Version : Stop people booking more places.

09-30-2009, 01:42 PM
I have a basic booking system that lets the user choose a competition and then it shows how many places there are left. But I want to be able to stop 1 person from booking all the places and just letting them book 1 place and then no more, how would I go about doing this?

09-30-2009, 03:55 PM
have a field in the db to record user id of who has booked for each competition, then check if the user id of the user trying to book a place matches any already booked places for that competition. does that make sense lol

09-30-2009, 06:22 PM
Yeah that does make sense, but the way I'm doing it is that people dont need to be logged in, probably not the best way of doing it.

10-01-2009, 01:15 AM
you have to be able to recognise the person booking or you cant differentiate so if not a log in member ship maybe a email verification?

10-01-2009, 03:19 PM
maybe not a great way but you could record the users ip and check against that but ip's tend to change regularly if its dynamic