How to subtract login and logout time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jagjit maan
    New Member
    • Feb 2011
    • 1

    How to subtract login and logout time?

    how to subtract the two times . one is login and second is logout .the time is get from the database but with two tables .one is login and second is logout .i got the both the time but how to subtract i do not know .please help
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    You could use MySQL ADDTIME in the query

    Comment

    Working...