In my website i want to introduce a link where people will see who joined the site for example today,yesterday one week ago,2week ago and one month ago...
how i`m i going to do this in php?
mrcniceguy
5
Posting Whiz in Training
Recommended Answers
Jump to PostAlgorithm:
First, get the date that they joined and convert to timestamp (strtotime function)
Next, get todays date in timestamp format (time function)
Then subtract current time from joined time
Now, number of seconds in one day is 24 * 60 * 60. Use this figure to calculate the …
Jump to PostDon't you forget to save the results in a database for easier access
All 6 Replies
darkagn
315
Veteran Poster
Featured Poster
nathenastle
-1
Light Poster
sureronald
0
Junior Poster
mrcniceguy
5
Posting Whiz in Training
queenc
-1
Junior Poster
darkagn
315
Veteran Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.