aries_

check

May 20th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. <?php
  2. include 'config/konek.php';
  3. $q=mysql_query('select * from plan');
  4. echo "<h1><center>Training</center></h1>";
  5. echo "<table border=1>
  6.    
  7.    <tr><th>Kode Plan</th>
  8.    <th>Kode Modul</th>
  9.    <th>LC</th>
  10.    <th>Instruktur</th>
  11.    <th>Ubis</th>
  12.    <th>Angkatan</th>
  13.    <th>Tanggal Mulai</th>
  14.    <th>Tanggal akhir</th>
  15.    <th>Anggaran</th>
  16.    <th>Peserta</th>
  17.    <th>Terlaksana</th></tr>";
  18.  
  19. $i=1;
  20. echo "<form method=post name=update action=include/updplan.php>";
  21. while ($r=mysql_fetch_array($q)){
  22.    echo " <tr><td>$r[KODE_PLAN]</td><td>$r[KODE_M]</td><td>$r[KODE_LC]</td><td>$r[KODE_INST]</td><td>$r[KODE_UBIS]</td><td>$r[ANGKATAN]</td><td>$r[TGL_MULAI]</td><td>$r[TGL_AKHIR]</td><td>$r[ANGGARAN]</td><td>$r[PST]</td><td>
  23.   <select name=berhasil><option value=berhasil>Berhasil</option><option value=gagal>Gagal</option></select></td></tr>";
  24.    $i++;
  25. }
  26. echo "</table><br />";
  27. echo "<input type=submit name=simpan value=simpan>";
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment