Query and List, PhP Main Page Auto Listing of User Actio

"I'm looking for PHP that would Query my user interactive pages and list those changes in my news page for when other users enter they see what has been added in different areas of the website to onclude picture databases. It would be set for say the newst changes and additions by users sum of 15 and include last changes by users sum of 15.

Example: user Tom uploaded a picture with description of his motorcycle in my picture database, and user Julie added a news article in my in my submit news area and so on...

To achieve what you want, you will need to keep track of every action of the user, like picture uploading, new post, and so on. And then display the 10 latest actions, in whichever way you wish.
You can have a table which will have the data about which user, what action, date, time, action category and so on...
There is no specific PHP query for this, this is purely dependent on your requirements.

Hello! Can you, please, help me submit my article? I can't do it myself because there's an error that occurred when I tried to do that. It is said that it was spam or an ad. How can I post the article? Thank you in advance.