Jump to content

[SOLVED] Creating a countdown...


DBookatay

Recommended Posts

Does anyone have a script that will countdown to a certain day?

I'm getting married on June 13th, 2008 and am in the process of creating a site for my

fiancé's and my family, to view our status, reception information, ceremony location, etc... and want a "### days remaining" script on the page.

 

                  -------------------------------------------------------

Also random poll: My fiancé thinks that it's cheesy to create a dB that everyone can go to to rsvp and make their meal selection, instead she want to have everyone mail in reply cards. If I

elegantly do a site, with a simply login area for friends and family to rsvp, is that cheesy? It would

definitely be more cost effective (less stamps / reply cards) and less time consuming (simply print a list of

attendees and meal selection for the banquet hall.)

 

Anyone have an opinion?

 

Link to comment
https://forums.phpfreaks.com/topic/72254-solved-creating-a-countdown/
Share on other sites

<?php
$doomsday = '1213315200'; //unix timestamp for June 13th 2008
$countdown =  $doomsday - time();
$countdowndays = round($countdown/60/60/24, 1);
echo "you will be married, and considered dead inside in $countdowndays days";
?>

 

As far as the invitations and stamps - yes it fiscally makes more sense to do it via an online site. However, as you will most inevitably come to realize - when planning a wedding - its best to leave the those types of decisions up to the woman. As my wife explained to me, she has been planning this wedding for her whole life.

 

<?php
$doomsday = '1213315200'; //unix timestamp for June 13th 2008
$countdown =  $doomsday - time();
$countdowndays = round($countdown/60/60/24, 1);
echo "you will be married, and considered dead inside in $countdowndays days";
?>

 

As far as the invitations and stamps - yes it fiscally makes more sense to do it via an online site. However, as you will most inevitably come to realize - when planning a wedding - its best to leave the those types of decisions up to the woman. As my wife explained to me, she has been planning this wedding for her whole life.

 

 

Love both the comments... Sarcasm is always the best way to wallow in self misery...

Thanks for the help...

Archived

This topic is now archived and is closed to further replies.

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