Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Membuat CRUD dengan CodeIgniter</title>
- </head>
- <body>
- <center><h1>Membuat CRUD dengan CodeIgniter</h1></center>
- <center><?php echo anchor('controllerapp/tambah','Tambah Data'); ?></center>
- <table style="margin:20px auto;" border="1">
- <tr>
- <th> No </th>
- <th> Nama </th>
- <th> Jenis Kelamin </th>
- <th> Alamat </th>
- <th> Pekerjaan </th>
- <th> Action </th>
- </tr>
- <?php
- $no = 1;
- foreach($user as $u){
- ?>
- <tr>
- <td><?php echo $no++ ?></td>
- <td><?php echo $u->nama ?></td>
- <td><?php echo $u->jenis_kelamin ?></td>
- <td><?php echo $u->alamat ?></td>
- <td><?php echo $u->pekerjaan ?></td>
- <td>
- <?php echo anchor('controllerapp/edit/'.$u->id,'Edit'); ?>
- <?php echo anchor('controllerapp/hapus/'.$u->id,'Hapus'); ?>
- </td>
- </tr>
- <?php } ?>
- </table>
- </body>
- </html>
Add Comment
Please, Sign In to add comment