Jump to content

[SOLVED] new posts in forum?


next

Recommended Posts

The basic premise is that you store the time of the person's last visit (session time) in the DB so that you can easily query against the database for any topics with posts that have been made since the member's last activity.

Link to comment
Share on other sites

While I would agree with this most of the time, it depends on what his purpose is.  If it's to learn how to code, then there is nothing wrong with writing his own.  If we all didn't reinvent the wheel once in awhile, we'd still be using wheels made of stone.

 

You need to look at www.phpbb.com

 

Dont put yourself in strain to reinvent the wheel !

Link to comment
Share on other sites

well, since all the threads should be timestamped then it should be relatively easy...the question you need to ask yourself is how many new posts should be shown?

 

query the mySQL database server and ORDER BY timestampVariable DESC LIMIT 10;

 

if you want the 10 most recent ones...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.