Selamat Malam,kali ini saya akan membahan tentang PHP.jadi langsung saja
memnuat project sudah dijelaskan di pertemuan sebelumnya jadi langsung saja ke syntaxnya
<?php
echo "<font color='black' face='Calibri' size='10'>";
echo "<table width='1000' border='0' cellpadding='4'>";
//komentar nama lengkap
$namaLengkap = "Achmad Nur Rozikin";
echo "<tr>";
echo "<td width='227'>Nama Lengkap</td>";
echo "<td with='8'>:</td>";
echo "<td width='254'>$namaLengkap</td>";
echo "<td rowspan='9'> <img src='zz.jpg' width='180' height='250'> </td>";
echo "</tr>";
//
//komentar nama panggilan
$namaPanggilan = "Rozi";
echo "<tr>";
echo "<td>Nama Panggilan</td>";
echo "<td>:</td>";
echo "<td>$namaPanggilan</td>";
echo "</tr>";
//
//komentar ttl
$tempatTanggalLahir = "MALANG, 9 juni 1996";
echo "<tr>";
echo "<td>Tempat, Tanggal Lahir</td>";
echo "<td>:</td>";
echo "<td>$tempatTanggalLahir</td>";
echo "</tr>";
//
//komentar smp
$asalSMP = "SMPN 1 Bululawang";
echo "<tr>";
echo "<td>Asal SMP</td>";
echo "<td>:</td>";
echo "<td>$asalSMP</td>";
echo "</tr>";
//
//komentar alamat
$alamat = "JL. Kendalpayak no.45,Malang";
echo "<tr>";
echo "<td>Alamat</td>";
echo "<td>:</td>";
echo "<td>$alamat</td>";
echo "</tr>";
//
//komentar tinggi/berat
$tinggi = "173";
$berat = "55";
echo "<tr>";
echo "<td>Tinggi/berat</td>";
echo "<td>:</td>";
echo "<td>$tinggi/$berat</td>";
echo "</tr>";
//
//komentar agama
$agama = "ISLAM";
echo "<tr>";
echo "<td>Agama</td>";
echo "<td>:</td>";
echo "<td>$agama</td>";
echo "</tr>";
//
//komentar hobi
$hobi = "Gaming";
echo "<tr>";
echo "<td>Hobi</td>";
echo "<td>:</td>";
echo "<td>$hobi</td>";
echo "</tr>";
//
jika sudah kalian ketikkan ,langsung luhat hasilnya di browser kalian dan jgn lupa xamppnya di RUN dlu
SEMOGA BERHASIL :)
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar