how to count the number of times a user has logged in?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andresinho
Forum Newbie
Posts: 1
Joined: Sun Feb 10, 2008 5:48 pm

how to count the number of times a user has logged in?

Post by andresinho »

hello there..i'm having a hard time trying to create a varaiable that tells me the number of times users have logged in to my site..i really dunno how to work it out..

someone help me please!!!
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: how to count the number of times a user has logged in?

Post by Christopher »

Add an integer field to the user account table and increment it every time the login.
(#10850)
Post Reply