Kode penghitung Mundur di VB6


Hitung mundur atau count down dalam php memang terkadang menjadi sangat diperlukan, Kali ini saya akan memberikan script hitung mundur, scrift ini bisa digunakan untuk hal-hal yang mungkin mencari data atau sebagai fungsi undo dalam web. atau mungkin sekedar pengetahuan saja.scrift ini sudah diedit kembali sehingga nantinya bisa lebih bermanfaat lagi.
Oke berikut script nya:
[code]
<?
$t=time();
echo($t . "<br /> Sekarang tanggal: ");
echo(date("D, d F Y",$t));
?>
<br><br><br>
<?php
// Change this to the day in the future
$day = 12;
// Change this to the month in the future
$month = 9;
// Change this to the year in the future
$year = 2011;
// You do not need to edit below this line
// $days is the number of days between now and the date in the future
$days = (int)((mktime (0,0,0,$month,$day,$year) - time())/86400);
echo "Masih ada $days hari, sampai tanggal $day/$month/$year";
?>
[/code]
Script ini masih bisa dikembangkan sesuai keperluan para pengguna dreamweaver, misalnya berhubungan dengan database.

0 Response to "Kode penghitung Mundur di VB6"

Posting Komentar

powered by Blogger | WordPress by Newwpthemes | Converted by BloggerTheme