Login count and last login

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!