ta sử dụng hàm mktime của php
ví dụ đếm ngược đến ngày 10-10-2010 ,1000 năm thăng long hà nội
<?php
function countdown($month,$day,$year){
$bien1=mktime(0,0,0,$month,$day,$year)-time();
$bien2=$bien1/86400;
$remain = ceil($bien2);
if ($remain > 0) {
echo " <strong><h1>$remain </h1> Ngày</strong> ";
}
else {
echo "<p>$event has arrived!</p>";
}
}
countdown(10, 10, 2010);
?>
3/20/2010
Subscribe to:
Post Comments (Atom)
List
Profiles Information
About me : Nothing is 1 vài thứ - 1985
Places I've Lived : I ♥ Hà Nội
Home Page : http://www.shimivn.blogspot.com/
Think : 1:1000000000
Languages spoken : Vietnamese,English.
Mobile : sony C2305 ♥ ♥
dell : i3-Ram 3GB- HDD 250GB . ♥♥♥
Places I've Lived : I ♥ Hà Nội
Home Page : http://www.shimivn.blogspot.com/
Think : 1:1000000000
Languages spoken : Vietnamese,English.
Mobile : sony C2305 ♥ ♥
dell : i3-Ram 3GB- HDD 250GB . ♥♥♥
No comments: