Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'config/konek.php';
- $q=mysql_query('select * from plan');
- echo "<h1><center>Training</center></h1>";
- echo "<table border=1>
- <tr><th>Kode Plan</th>
- <th>Kode Modul</th>
- <th>LC</th>
- <th>Instruktur</th>
- <th>Ubis</th>
- <th>Angkatan</th>
- <th>Tanggal Mulai</th>
- <th>Tanggal akhir</th>
- <th>Anggaran</th>
- <th>Peserta</th>
- <th>Terlaksana</th>
- <th>Catatan</th></tr>";
- $i=1;
- echo "<form method=post name=update action=include/updplan.php>";
- while ($r=mysql_fetch_array($q)){
- 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>
- <select name=\"berhasil_[$i]\"><option value=berhasil>Berhasil</option><option value=gagal>Gagal</option></select></td><td><textarea name=\"cat[$i]\" cols=5 rows=5></textarea></tr>";
- $i++;
- }
- echo "</table><br />";
- echo "<input type=submit name=simpan value=simpan>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment