matching a number

admin

Administrator
Staff member
hi,
i want to do something but im not sure how to approach it. I already have the user registration sorted now but say i had a mysql database where the user's information was kept. Say i wanted to restrict a download directory or something and i only wanted them to download one thing no more than say 10 times.

So in the mysql database, i would add a field called "downloaded." and set it at "0." how can i do it so that every time they press submit it will add a 1 to that 0 and once it reaches 10, it will deny them the ability to download. Also the ability to possibly add another button that will delete the last value (1).

any help would be appreciated

thanks!
Khilan
 
Back
Top