Make topic with latest post appear at the top on forum system

Asked

Viewed 69 times

-4

I have a question from a forum that I’m creating from scratch. I have the list of topics in the forum. When a person comments on such topic this topic should go up in the list (get first). How can I do that?

1 answer

1


When you select them on topics sort by last id

SELECT * FROM `teste` ORDER BY `id` ASC

I don’t quite understand your question but from what I understand it’s either this or the way to your doubt!

  • Vlw! That’s right, only I created a timestamp in the table of topics, every comment there makes an UPDATE and it will be displayed according to the time!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.