UPDATE my_table SET lastposter='poster' WHERE id='$id'
henry0
3:27 pm on Feb 26, 2009 (gmt 0)
sure, whatever is the name give it a try
LifeinAsia
4:35 pm on Feb 26, 2009 (gmt 0)
What happens if there is more than 1 reply?
redfoxhound
5:08 pm on Feb 26, 2009 (gmt 0)
Well whom ever is the last person to create a reply then their name would be the one on the lastposter. Then if there is moderation and those replies get deleted up to the point where there are 0 reply.. then lastposter would be the poster
LifeinAsia
5:17 pm on Feb 26, 2009 (gmt 0)
But if there are 2 replies and you delete 1, you are resetting the "lastposter" field to "poster" (i.e., the original poster) instead of the person who wrote the other reply. Right? Or am I missing something?
henry0
10:13 pm on Feb 26, 2009 (gmt 0)
Then why not adding a timestamp and rely on it for all operations/queries