19 Sep 2011
Membuat Kelender dengan PHP
<?php
echo("
<table>
<td background='img/logo.jpg' width='99' height='108'> ");
$n_hari=array("Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu");
$n_bulan=array("Januari","Februari","Maret","April","Mei","Juni","Juli","
Agustus","September","Oktober","November","Desember");
$hari=$n_hari[date("w",time())];
$tanggal=date("d",time());
$bulan=$n_bulan[date("m",time())-1];
$tahun=date("Y",time());
echo "<center><font size='5' color=black>$hari</font><br>";
echo "<font size='6' color=black>$tanggal<br></font>";
echo "<font size='3' color=black>$bulan";
echo " $tahun</center></font>";
echo ("
</td>
</table>
");
?>
Copi Paste saja. Simpan dengan kelender.php
untuk background nya sendiri bisa di buat sendiri dengan selera anda...
Tidak ada komentar:
Posting Komentar