|
#1
|
|||
|
|||
|
On the top of this page it shows the date and time I last visited... Anyone know of where I can find a script for a feature like this?
I want to put the date and time of the members' last logins on their profiles Any help would be appreciated... Thanks! -Sammy |
|
#2
|
||||
|
||||
|
Would this be in a forum or another "profile" on your site?
If a forum, which type are you running? |
|
#3
|
|||
|
|||
|
Well, I don't think you'd classify my site as a forum. It's basically a blogging site... I think thats the best way to classify it.
Basically, if you go to www.StupidPeoplePissMeOff.com, Click on one of the new members, a box should pop up with any profile info they have filled out, I'd like their last log in date and time to show there. |
|
#4
|
||||
|
||||
|
Okay I am not very good at this, but basically you will have to go into your MySQL database and figure out which table stores the log in information, specifically the time field.
Then you will have to pull that out with php, and show it on the page. Something like this should get you started: PHP Code:
|
|
#5
|
|||
|
|||
|
thanks!! i'll try it out...
|
|
#6
|
||||
|
||||
|
It may not work exactly right, as I said SQL is NOT my thing. If you have further problems you can take this question and posted code to the SQL board and perhaps testingsite or Twey can further get it tweaked for you
|
|
#7
|
||||
|
||||
|
Im not 100% sure, but pretty sure that the functions like "mysql_connect", "mysql_[insert_line_here]" should be lowercase. Other than that, should work (although not tested). Let us know if you get any errors or need help tweaking it.
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989 The Testing Site | Atomic Yeti |
|
#8
|
|||
|
|||
|
I'll keep you guys posted on the results.. thanks a bunch
|
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
|||
|
|||
|
Right now I have nothing recording users log in times or dates, so I guess that's where I need to start... How can I track this?
Thanks in advance! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|