Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Last Login [PHP & MYSQL]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markshall" data-source="post: 331783" data-attributes="member: 1872"><p>You don't even need to create a new table for it. Just add a column called LastLogin or something in your users table</p><p></p><p>Then when they log in, just do an UPDATE on LastLogin to the value of <span style="font-family: 'Courier New'">time()</span></p><p></p><p>Then when you want to display it, just do a SELECT from users and use <span style="font-family: 'Courier New'">date()</span><span style="font-family: 'Arial'"> to format it</span></p></blockquote><p></p>
[QUOTE="Markshall, post: 331783, member: 1872"] You don't even need to create a new table for it. Just add a column called LastLogin or something in your users table Then when they log in, just do an UPDATE on LastLogin to the value of [FONT=Courier New]time()[/FONT] Then when you want to display it, just do a SELECT from users and use [FONT=Courier New]date()[/FONT][FONT=Arial] to format it[/FONT] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Last Login [PHP & MYSQL]
Top