Page 1 of 1

help setting up a database, please

Posted: Fri Jul 11, 2008 11:10 am
by CZfrei
Does anyone know how I can set up a database with users who can only log in a certain amount of times before their account expires? I would really appreciate any help or suggestions on how to do this. Thanks in advance.

Re: help setting up a database, please

Posted: Fri Jul 11, 2008 12:58 pm
by jaoudestudios
In the user table keep a counter and increment everytime they log in. When they log in check this value if greater than your specified limit do not let them log in. Fire back an error message

Re: help setting up a database, please

Posted: Fri Jul 11, 2008 2:16 pm
by CZfrei
Thanks a lot that really helps me out.