Recent Topics

1 Apr 04, 2005 19:38    

Hi all,

I was just guessing: would it be hard to implement some countdown counter as shown in http://www.onedigitallife.com/??

Let's see what the php coders can do :)

2 Apr 04, 2005 20:28

thats easy, check the bottom of my blog -- when im done losing my ass at texas-holdem ill throw the code up for you

3 Apr 04, 2005 22:56

Thank you a lot! I'm already waiting for it :)

4 Apr 05, 2005 01:09


<?
$oneday = 04; // Day of the countdown
$onemonth = 11; // Month of the countdown
$oneyear = 2008; // Year of the countdown
print ( "<p class=\"foot\">Only". (int)((mktime (0,0,0,$onemonth,$oneday,$oneyear) - time(void))/86400) . " days until Election day 2008</p>");
?>

thats what you see on my footer :)

if you need more than one like your example page.. change the variable names ...

$oneday-1
$onemonth-1
$oneyear-1

or something similar that you'll understand..

I could have used :
$electionday
$electionmonth
$electionyear

for example...

hth!

5 Apr 06, 2005 16:37

Thank you, whoo! I'll use it as soon as possible :)

6 Apr 11, 2007 16:53

It doesn't work for me, I get an error :

Parser error: not well-formed (invalid token) near <body>< ?
$oneday = 04; /


Form is loading...