View Full Version : Last 5 visitors on page

02-24-2012, 09:55 PM
Hello. can someone help me out.

I'm trying to add a list of the last 5 users to view a webpage using php and mySQL. any ideas?

I already have a script on the page to see if a user is logged in. Im just looking for the scripting to create a list of the last 5 users to visit the page and then retrieve the list on another page.

If you really want Ill give someone a few dollars to do this.

Thanks in Advance.

02-25-2012, 07:40 AM
if you are using wordpress, you may use most-recent-visitors plugin. Or, you may have a look into this plugin to get an idea.

02-25-2012, 08:08 PM
for such things like this... I'd recommend keeping info about last 5 users in file

02-26-2012, 01:13 AM
I'm not using wordpress. I thought that creating a database where as the ids in each table grow. Every id values lower than the top 5 ids are continuously deleted.