wassanova Posted August 5, 2007 Share Posted August 5, 2007 Hey everbody, I'm new to coding so pardon me if this is a simple questions. On my blog, I'm trying to get the date to appear once per day with all posts under that date appearing underneath the date. Does anyone know how I could accomplish this? Thanks! Greg Quote Link to comment https://forums.phpfreaks.com/topic/63467-how-do-i-make-the-date-appear-only-once-each-day/ Share on other sites More sharing options...
cooldude832 Posted August 5, 2007 Share Posted August 5, 2007 some code would be helpful. Look into the mktime() mkdate() functions and the flags to return date in certain formats Quote Link to comment https://forums.phpfreaks.com/topic/63467-how-do-i-make-the-date-appear-only-once-each-day/#findComment-316269 Share on other sites More sharing options...
Barand Posted August 5, 2007 Share Posted August 5, 2007 pseudocode set prevdate = '' while read next record if date != prevdate output date set prevdate = date end if output other data from record end while Quote Link to comment https://forums.phpfreaks.com/topic/63467-how-do-i-make-the-date-appear-only-once-each-day/#findComment-316275 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.