SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2008
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    showing date,today yesterday ....

    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?

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    If you add a date_when_joined field in your table that would be a start.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Zealot
    Join Date
    Mar 2008
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes i add date as timestamp,so whats next?

  4. #4
    SitePoint Zealot
    Join Date
    Dec 2006
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you just going to run a script saying, show me all users within last X days/weeks/month?

    Do you mean "last week" as in 7 days ago, or the last Sunday-Sat? Are these all going to be on one page? Some people could be duplicated as they were signed up both last week and last month... and many people could be for both last month and last week, 2 weeks, etc. What should you do with duplicates?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •