# Login count and last login

**URL:** <https://forum.kirupa.com/t/login-count-and-last-login/275095>\
**Category:** Uncategorized\
**Created:** [November 9, 2008, 6:06pm UTC](https://forum.kirupa.com/t/login-count-and-last-login/275095 "2008-11-09T18:06:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vl390](https://avatars.discourse-cdn.com/v4/letter/v/e5b9ba/32.png) [@vl390](https://forum.kirupa.com/u/vl390)\
**Post date:** [November 9, 2008, 6:06pm UTC](https://forum.kirupa.com/t/login-count-and-last-login/275095/1 "2008-11-09T18:06:52Z")

</div>

Hi.

I have created a user authentication system using AMFPHP and MySQL with as3. It works by looping the MySQL database, and if there is a match = gotoAndPlay(“Success frame”).

I also want to create a login counter, to count how many times the particular password has been used and a lastlogin timestamp for checking when the password was last used.

I have tried some different thing and tried searching for a tutorial, but no luck.

Can anyone suggest a method to creating this?

Thank you very much!
