|Well, since you've presumably used mySql to store the user details, why not add a field to the database called something like lastLoginTime.
I'd probably fill that field with the Unix time, since it's much easier to compare two integers than 2 strings.
$curLoginTime = time(); // number of seconds since Jan 1 1970
Make sure you save this data to the user's lastLoginTime mySql entry.
All you have to do then is run a query that retuns all users.
Run the time command again, subtract 24 * 60 * 60 seconds from the result, and that's the number of seconds elapsed from 1 Jan 1970 to 24 hours prior to the current time. If the user's lastLoginTime is an integer higher than this number, you just found someone that logged in in the last 24 hours.
As for the user management panel thing - that's also relatively easy. You just make sure that every piece of info on the screen you wish to edit has a corresponding field in the mysql database.
Though, I will mention a small thing that may otherwise cause frustration: The general form of the url for a user's personal page will be "sitename.com/members/filename.php?user=userName" - The reason for the difference is that you _don't_ want a new php page for each user, you want to create one page that will handle all of them, just pass the actual user as a variable to the statistics/editing page.
I'd just be inclined at this point of the learning-curve to hit google with "free forum php code" then scan the results for an example that does what you want, or uses a method of achieving something else that you can adapt to your own needs.
Failing that - I'd still use somebody else's as a starting block, just try to add new features to their code.
smithers-jones wrote:But you won't find anybody here, who will present the whole project to you
Me included. While I did indulge the previous request - That was a comparatively small one.
Smithers-jones suggests some useful tactics. Understanding code and not just copying it is perhaps the best advice one can give a fellow coder.
modified on Friday, January 1, 2010 5:31 PM