daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Nov 9th, 2018 94 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Membuat CRUD dengan CodeIgniter</title>
  5. </head>
  6. <body>
  7.     <center><h1>Membuat CRUD dengan CodeIgniter</h1></center>
  8.     <center><?php echo anchor('controllerapp/tambah','Tambah Data'); ?></center>
  9.     <table style="margin:20px auto;" border="1">
  10.         <tr>
  11.             <th> No </th>
  12.             <th> Nama </th>
  13.             <th> Jenis Kelamin </th>
  14.             <th> Alamat </th>
  15.             <th> Pekerjaan </th>
  16.             <th> Action </th>
  17.         </tr>
  18.         <?php
  19.         $no = 1;
  20.         foreach($user as $u){
  21.         ?>
  22.         <tr>
  23.             <td><?php echo $no++ ?></td>
  24.             <td><?php echo $u->nama ?></td>
  25.             <td><?php echo $u->jenis_kelamin ?></td>
  26.             <td><?php echo $u->alamat ?></td>
  27.             <td><?php echo $u->pekerjaan ?></td>
  28.             <td>
  29.                   <?php echo anchor('controllerapp/edit/'.$u->id,'Edit'); ?>
  30.                               <?php echo anchor('controllerapp/hapus/'.$u->id,'Hapus'); ?>
  31.             </td>
  32.         </tr>
  33.         <?php } ?>
  34.     </table>
  35. </body>
  36. </html>
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