Come visualizzare anche i minuti restanti in questo script ?
Cioè: nella pagina viene visualizzato "Mancano tot ore e tot minuti" all'evento.
codice:
<?php
//CONFIGURE THE SCRIPT BELOW
// The number of the month 1-12 that your event occurs
$month=6;
//The number of the day 1-31 that your event occurs
$day=6;
$hours=15;
$minutes=0;
$second=0;
//The 4 diget number for the year that your event occurs
$year=2009;
//How would you like the countdown to display?
// 1 = days
// 2 = hours
// 3 = minutes
// 4 = seconds
// default is to displa in days
$display = 2;
$display1 = 3;
//DO NOT EDIT BELOW THIS LINE ----------------------
// ------------------------------------------------
$target = mktime($hours, $minutes, $seconds, $month, $day, $year);
$today = time ();
$difference =($target-$today);
$minutes = (int) ($differenza/216000);
if ($display == 1) { print ((int) ($difference/86400)) . " giorni"; }
if ($display == 2) { print ((int) ($difference/3600)) . " ore"; }
if ($display == 3) { print ((int) ($difference/60)) . " minuti"; }
if ($display == 4) { print ((int) ($difference)) . " secondi"; }
if ($display1 == 1) { print ((int) ($difference/86400)) . " giorni"; }
if ($display1 == 2) { print ((int) ($difference/3600)) . " ore"; }
if ($display1 == 3) { print ((int) ($difference/60)) . " minuti"; }
if ($display1 == 4) { print ((int) ($difference)) . " secondi"; }
?>