Jump to content

find the last entry in a table by a specified user


goatboy

Recommended Posts

ok hope i don't make this too confusing.
lets say i have a table called comments.
A user can have multiple entries in the table or none,
I want to be able to find the most recent post by a certain user.
so lets say they posted comments last month, last week, and yesturday.
what code would i use to retreive only the post from yesturday.

the table contains the date they posted, the user id and what item they commented on.
I need to be able to check when they posted last in comparison to the current date, i have that part of the code down just need to be able to find the last time they posted.

Archived

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

×
×
  • Create New...

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.