Latest Movie :

Search

MEMBUAT TABLE KEREN DENGAN PHP

SCRIPT PHP



<!DOCTYPE html>
<html>
<body>
<body bg background="ped.jpg"> 
</body>
<body> <font color="BLUE"> <CENTER><h1>Welcome My First PHP Page :)</CENTER></h1>
<?php 
$baris= 1; 
echo "<CENTER><table border></CENTER>"; 
echo "<tr bgcolor=\"purple\">"; 
echo "<th><CENTER>Nama</CENTER></th>"; 
echo "<th><CENTER>Npm</CENTER></th>"; 
echo "<th><CENTER>No Telpon</CENTER></th>"; 
echo "</tr>";  

$t="Robi Alben"; 
$n="14100128262010";
$x="081261312088";
{     $warna= ($baris% 5==5); 
echo "<tr bgcolor=\"".$warna."\">";         
echo "<td>$t</td>";     
echo "<td>$n</td>";  
echo "<td>$x</td>";   
echo "</tr>"; 
    
$t="Dinda"; 
$n="14100128262001";
$x="086523214565";

echo "<tr bgcolor=\"".$warna."\">";         
echo "<td>$t</td>";     
echo "<td>$n</td>";  
echo "<td>$x</td>";   
echo "</tr>";   

$t="Devi Anggraini"; 
$n="14100128262012";
$x="085756523654";

echo "<tr bgcolor=\"".$warna."\">";         
echo "<td>$t</td>";     
echo "<td>$n</td>";  
echo "<td>$x</td>";   
echo "</tr>";   

$t="Mutia Fitri"; 
$n="14100128262026";
$x="081236549658";

echo "<tr bgcolor=\"".$warna."\">";         
echo "<td>$t</td>";     
echo "<td>$n</td>";  
echo "<td>$x</td>";   
echo "</tr>";   

$t="Nurcahaya Manurung"; 
$n="14100128262020";
$x="085365645213";

echo "<tr bgcolor=\"".$warna."\">";         
echo "<td>$t</td>";     
echo "<td>$n</td>";  
echo "<td>$x</td>";   
echo "</tr>";   

  
$baris++; 

echo "<CENTER></table></CENTER>"; 
?> 

</body>



HASIL DARI SCRIPT DI ATAS







Share this article :

+ komentar + 2 komentar

21 Mei 2017 pukul 22.57

Good Blog...

http://blog.binadarma.ac.id/novrihadinata

Posting Komentar

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Robbyalben STTinformatikaBatam - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger