i am implementing a forum in php. I Would like to add a feature in which user can add a post by setting some future date so that on that date in future the post will be displayed. Could anyone give me an idea how to implement that(logic).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Submit the post to the database with a future time and, when you query it to find the posts, limit the results to those whose time is less or equal than the current time.
If you still want to distinguish time of publication from time of submission, you can have one column for each and display the post based on the time of publication.