Jump to content

Archived

This topic is now archived and is closed to further replies.

holowugz

Question regarding a MYSQL query

Recommended Posts

I an app i am creating i have to store the login's people make, and on the main page i want to display the last time that person logged in.

Now if i just done a query it would pull the most recent login but i want the one before that, how can i specify in the query to get the row before ?

Share this post


Link to post
Share on other sites
Pull the lastlogin value from the field before you update it with the new one (NOW()) that way youll get the previous login...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.