Probléme de compte a rebours bizarre

donfab Messages postés 13 Date d'inscription mercredi 15 juin 2005 Statut Membre Dernière intervention 18 avril 2006 - 11 avril 2006 à 09:49
donfab Messages postés 13 Date d'inscription mercredi 15 juin 2005 Statut Membre Dernière intervention 18 avril 2006 - 11 avril 2006 à 10:45
donc voici mon code :
<html>
<head><meta http-equiv="refresh" content="1">
    <title>Compte a rebours</title>
</head>

<?php

//CONFIGURE THE SCRIPT BELOW

// The number of the month 1-12 that your event occurs
$month=date('n');

//The number of the day 1-31 that your event occurs
$day=date('d');

//The 4 diget number for the year that your event occurs
$year=date('Y');

$heure=date('0');
$tminute=date('i');
$tminute=$tminute+4;
$tsecond=date('s');
//How would you like the countdown to display?
// 1 = days
// 2 = hours
// 3 = minutes
// 4 = seconds
// default is to displa in days
$display = 4;

//DO NOT EDIT BELOW THIS LINE ----------------------
// ------------------------------------------------

$target = mktime($tsecond, $tminute, $heure, $month, $day, $year);
$today = time ();
$difference =($target-$today);
if ($display == 1) { print ((int) ($difference/86400)) . " days "; }
if ($display == 2) { print ((int) ($difference/3600)) . " hours"; }
if ($display == 3) { print ((int) ($difference/60)) . " minutes"; }
if ($display == 4) { print ((int) ($difference)) . " seconds"; }

?>

</html>


le probléme cest que le chiffre se désincremente pas du tout il augmente :s je ne vois pas du tout pourquoi
merci d'avance pour l 'aide

1 réponse

donfab Messages postés 13 Date d'inscription mercredi 15 juin 2005 Statut Membre Dernière intervention 18 avril 2006
11 avril 2006 à 10:45
oups dsl je vein de vori que sa peu pas marcher :s
dsl je vai donc me rabbatre sur le javascript
0
Rejoignez-nous