Jump to content

Archived

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

Gruzin

* Solved* Select last 3 records from db

Recommended Posts

Hi guys,
I am making a registration form, so I need to show last 3 members from db. Any ideas how to do that?

Thanks for your time,
George

Share this post


Link to post
Share on other sites
do you have a date field for the time they signed up? if so, it's as simple as ordering by that field:
[code]
SELECT * FROM users ORDER BY signupDate DESC LIMIT 3;
[/code]

Share this post


Link to post
Share on other sites
Not yet, I will add date field for that, thanks for quick answer  :)

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.