<?php

//CONFIGURE THE SCRIPT BELOW

$month=5;

$day=14;

$year=2011;

//How would you like the countdown to display?
// 1 = days
// 2 = hours
// 3 = minutes
// 4 = seconds
// default is to displa in days
$display =2;


$target = mktime(0, 0, 0, $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"; }

?>

come faccio a editare sto coso!??
innanzitutto devo prelevare le info dal db (mese,giorno,h,m,s) e come risultato vorrei avere per intero giorni ore minuti e secondi rimanenti...

aiuto