rofl90 Posted March 4, 2008 Share Posted March 4, 2008 I have a form in which submits an ip when you logon, and stores it into a mysql database, now how would I extract that data, but only displaying like the last 20 results.. OR how would I have the records automatically delete themselves after 30 minutes or whatever, so that if you get it wrong your almost locked out for a while. But obviously I'd make it three times or w.e. Quote Link to comment Share on other sites More sharing options...
CrazeD Posted March 4, 2008 Share Posted March 4, 2008 Make a last_login_try field in your database and store a timestamp from the last time they failed a login. Then add login_tries or something to your database, and increment a number each time they fail a login. Then run a check to see if how many failed logins they have. Then see if the last login attempt was more than the specified time limit ago. Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 4, 2008 Author Share Posted March 4, 2008 OK, thanks man )) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.