SHARE
TWEET

aksi.php

choirurrizal Feb 19th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <title>form hapus/edit</title>
  4. </head>
  5. <body>
  6. <table border='1'>
  7. <tr><td>q_id</td><td>username</td><td>password</td><td colspan='2'>aksi</td></tr>
  8. <?php
  9.     require_once('connect.php');
  10.     $sql = "SELECT * FROM tabel_try";
  11.     $query = mysql_query($sql);
  12.     while ($tampil = mysql_fetch_array($query)) {
  13.         $q_id = $tampil['q_id'];
  14.         $q_username = $tampil['q_username'];
  15.         $q_password = $tampil['q_password'];
  16.         echo '<tr><td>'.$q_id.'</td><td>'.$q_username.'</td><td>'.$q_password.'</td><td><a href="./aksi_edit.php?q_id='.$q_id.'">edit</a></td><td><a href="./aksi_hapus.php?q_id='.$q_id.'">hapus</a></td></tr>';
  17.     }
  18.     echo '</table>';
  19. ?>
  20. <a href='./'>index</a> <a href='./form.php'>isi</a> <a href='./aksi.php'>aksi</a>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top