Hi,
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?

bee80

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

mr_badger

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.

edbr

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?

bee80

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