Example PHP Program: how to view the Zodiac

I will give an example PHP program is executed via localhost and Xampp. his way is not difficult and it is easy to understand when you create it.

This program can you make it through notepad, notepad++, or Macromedia Dreamweaver 8 and others. Here's how :

<?php
$tgl = "19";
$bln = "oktober";

if (($tgl >= 21 && $bln == "januari" ) ||($tgl <=20 && $bln == "februari" )){
echo "Zodiak aquarius";}
else if (($tgl >= 21 && $bln == "februari" ) ||($tgl <=20 && $bln == "maret" )){
echo "Zodiak 6";}
else if (($tgl >= 21 && $bln == "maret" ) ||($tgl <=20 && $bln == "april" )){
echo "Zodiak 7";}
else if (($tgl >= 21 && $bln == "april" ) ||($tgl <=20 && $bln == "mei" )){
echo "Zodiak aries";}
else if (($tgl >= 21 && $bln == "mei" ) ||($tgl <=20 && $bln == "juni" )){
echo "Zodiak taurus";}
else if (($tgl >= 21 && $bln == "juni" ) ||($tgl <=20 && $bln == "juli" )){
echo "Zodiak cancer";}
else if (($tgl >= 21 && $bln == "juli" ) ||($tgl <=20 && $bln == "agustus" )){
echo "Zodiak leo";}
else if (($tgl >= 21 && $bln == "agustus" ) ||($tgl <=20 && $bln == "september" )){
echo "Zodiak 1";}
else if (($tgl >= 21 && $bln == "september" ) ||($tgl <=20 && $bln == "oktober" )){
echo "Zodiak libra";}
else if (($tgl >= 21 && $bln == "oktober" ) ||($tgl <=20 && $bln == "november" )){
echo "Zodiak 3";}
else if (($tgl >= 21 && $bln == "november" ) ||($tgl <=20 && $bln == "desember" )){
echo "Zodiak 4";}
else if (($tgl >= 21 && $bln == "desember" ) ||($tgl <=20 && $bln == "januari" )){
echo "Zodiak 5";}

else
{
echo "tidak ditemukan";
}
?>

Example PHP Program: how to view the Zodiac
That's a program that I can create. Thank you.

Example PHP Program: how to view the Zodiac Rating: 4.5 Diposkan Oleh: Ambil Hikmah

0 komentar:

Post a Comment