kla0005 Posted February 8, 2010 Share Posted February 8, 2010 Hi Guys, I want a system, so i can upload some artikles, but say that they must first be showed the 10th. How can i do that, wat should i write in the while, and what date kind, unix maybe? Please help. Link to comment https://forums.phpfreaks.com/topic/191325-show-after-that-date/ Share on other sites More sharing options...
alexjb Posted February 8, 2010 Share Posted February 8, 2010 There are many ways to do it. Personally (and assuming you're using a database), I would have a show_time column in my articles table, which would contain the exact unix timestamp to begin showing. Retrieving articles would then be a simple case of a query such as, SELECT * FROM `articles` WHERE `show_time` >= time() Link to comment https://forums.phpfreaks.com/topic/191325-show-after-that-date/#findComment-1008726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.