Tech Support Forum banner
Status
Not open for further replies.
1 - 4 of 4 Posts

· Registered
Joined
·
9 Posts
Discussion Starter · #1 ·
Hi there,

I am trying to make a countdown script for our website.

what i want is a script to say how long in days hours minutes and seconds until our next gangshow. when it reaches the time of the first performance i want it to change to say how long until the next performance until it gets to the end then i want it to change to say next show in 2009.

any one know how ican do this in php?
 

· Registered
Joined
·
9 Posts
Discussion Starter · #2 ·
so far this is what i have come up with

<?php
$m = date("m");
$d = date("d");
$y = date("y");
$h = date("h");
$i = date("i");
$s = date("s");

$wedmat = "041107143000";
$wedeve = "041107193000";
$thurseve = "041207193000";
$frieve = "041307193000";
$satmat = "041407143000";
$sateve = "041407193000";

$now = "$m$d$y$h$i$s";

$q1= "$now < $wedmat";

echo "Next Show";

if ($now < $wedmat)
include 'countdown/wedmat.php';

elseif ($now >= $wedmat && $now < $wedeve)
include 'countdown/wedeve.php';

elseif ($now >= $wedeve && $now < $thurseve)
include 'countdown/thurseve.php';

elseif ($now >= $thurseve && $now < $frieve)
include 'countdown/frieve.php';

elseif ($now >= $frieve && $now < $satmat)
include 'countdown/satmat.php';

elseif ($now >= $satmat && $now < $sateve)
include 'countdown/sateve.php';

else

echo "Easter 2009!";

?>


when using the current date it seemed to work but now appears not to??? any ideas????
 
1 - 4 of 4 Posts
Status
Not open for further replies.
Top